/* ==========================================================================
   Newbury Lock & Security Services — modern stylesheet
   System-font stack, centered responsive layout, brand indigo + brass accent
   ========================================================================== */

:root {
  --primary: #4a4a89;
  --primary-dark: #353566;
  --primary-deep: #2c2c52;
  --accent: #c9931b;
  --accent-soft: #fdf3dd;
  --ink: #23262f;
  --muted: #5f6474;
  --bg: #f5f6fa;
  --card: #ffffff;
  --border: #e3e5ef;
  --shadow-sm: 0 1px 3px rgba(35, 38, 47, .07), 0 1px 2px rgba(35, 38, 47, .05);
  --shadow-md: 0 6px 18px rgba(35, 38, 47, .09);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("../images/bg-texture.jpg");
  background-size: 300px auto;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--primary-deep);
  margin: 0 0 .6em;
  font-weight: 700;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

ul { padding-left: 1.25em; }
li { margin: .3em 0; }

/* ---- Layout ---- */
.container {
  max-width: 1020px;
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: 42px 0; }
.section-alt { background: #eef0f7; }

.section-head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.section-head p { color: var(--muted); margin: 0; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; text-decoration: none; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--primary-deep);
}
.brand:hover { text-decoration: none; color: var(--primary); }
.brand-icon { flex: 0 0 auto; color: var(--accent); }
.brand-name {
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.brand-name small {
  display: block;
  font-weight: 500;
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  white-space: nowrap;
}
.site-nav a:hover { background: #eef0f7; color: var(--primary); text-decoration: none; }
.site-nav a[aria-current="page"] {
  background: var(--primary);
  color: #fff;
}

/* ---- Page hero (subpages) ---- */
.page-hero {
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  padding: 40px 0 34px;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero .lede { color: #d9dbee; max-width: 680px; margin: 0; font-size: 1.08rem; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  margin: 0 0 14px;
  font-size: .85rem;
  color: #b9bdd8;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.breadcrumb a { color: #cfd3ec; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #8f93b8; }
.breadcrumb [aria-current="page"] { color: #fff; }

/* ---- Home hero ---- */
.hero {
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  padding: 56px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1000px 420px at 85% -10%, rgba(255, 255, 255, .12), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #f0c45c;
  margin: 0 0 12px;
}
.hero h1 { color: #fff; margin-bottom: 14px; font-size: clamp(2rem, 5vw, 2.9rem); }
.hero .lede {
  color: #d9dbee;
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 24px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.trust-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  padding: 22px;
  color: #eef0fa;
  backdrop-filter: blur(4px);
}
.trust-card h2 { color: #fff; font-size: 1.02rem; margin-bottom: 12px; }
.trust-card ul { list-style: none; margin: 0; padding: 0; }
.trust-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  font-size: .95rem;
}
.trust-card li svg { flex: 0 0 auto; margin-top: 4px; color: #f0c45c; }
.trust-art {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.trust-art img {
  width: 106px;
  opacity: .95;
  image-rendering: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--accent); color: #231a00; }
.btn-primary:hover { background: #dca426; color: #231a00; }
.btn-outline { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-ghost { background: var(--primary); color: #fff; }
.btn-ghost:hover { background: var(--primary-dark); color: #fff; }

/* ---- Cards & grids ---- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { color: var(--primary); margin-bottom: .5em; }
.card p { color: var(--muted); margin-bottom: .6em; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--ink); }
.card li { margin: .35em 0; }
.card .more { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--primary); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eceef8;
  color: var(--primary);
  margin-bottom: 14px;
}

/* Checklist variant */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 5px 0;
}
.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  border-radius: 50%;
  background: #e8f4ec url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="none" stroke="%232e7d32" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" d="M3.5 8.5l3 3 6-6.5"/></svg>') center / 12px no-repeat;
}

/* ---- Badges strip ---- */
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.badge {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--primary-deep);
  font-weight: 600;
  font-size: .92rem;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ---- Callout / CTA band ---- */
.callout {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.callout h2 { color: #fff; margin: 0 0 4px; font-size: 1.35rem; }
.callout p { color: #d9dbee; margin: 0; }
.callout .phone-big {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.callout .phone-big:hover { color: #f0c45c; text-decoration: none; }

/* ---- Prose page content ---- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

.info-note {
  background: var(--accent-soft);
  border: 1px solid #f0d9a8;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 24px;
  color: #5c4708;
}
.info-note strong { color: #4a3606; }

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 12px; max-width: 780px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 46px 15px 20px;
  font-weight: 600;
  color: var(--primary-deep);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 20px 16px; color: var(--muted); margin: 0; }

/* ---- Address card ---- */
.address-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.address-card dt { font-weight: 700; color: var(--primary-deep); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; margin-top: 16px; }
.address-card dt:first-child { margin-top: 0; }
.address-card dd { margin: 2px 0 0; color: var(--ink); }
.address-card dd a.tel { font-size: 1.25rem; font-weight: 700; color: var(--primary); }

/* ---- Photo frames ---- */
.figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.figure img { border-radius: 8px; margin-inline: auto; }
.figure figcaption { font-size: .82rem; color: var(--muted); padding-top: 8px; }

/* ---- Split layout (text + figure) ---- */
.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
}

/* ---- Off-the-job note band (home) ---- */
.note-band {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.note-band-kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.note-band p:last-child { margin-bottom: 0; color: var(--muted); }

/* ---- Footer ---- */
.site-footer {
  background: var(--primary-deep);
  color: #c3c7e2;
  margin-top: 56px;
  padding: 40px 0 26px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #c3c7e2; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-icon { color: #f0c45c; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #a9adc9; margin: 10px 0 0; max-width: 300px; }
.footer-nap address { font-style: normal; }
.footer-nap .tel { font-weight: 700; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  font-size: .82rem;
  color: #9aa0c4;
}

/* ---- Table (kept for semantic data if needed) ---- */
.table-wrap { overflow-x: auto; }
table.simple { border-collapse: collapse; width: 100%; }
table.simple th, table.simple td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }

/* ---- Utility ---- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 32px 0; }
  .hero { padding: 40px 0 44px; }
  .header-inner { justify-content: center; }
  .callout { flex-direction: column; align-items: flex-start; }
  .callout .phone-big { font-size: 1.3rem; }
}

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