/* =========================================================
   JP Locksmiths / Emergency Locksmith Carlisle
   Design system: black + gold, built from real brand assets
   ========================================================= */

:root {
  --black: #000000;
  --charcoal: #15130f;
  --charcoal-2: #1e1b15;
  --charcoal-line: #2c2820;
  --gold: #f2d925;
  --gold-deep: #b8912e;
  --gold-dim: rgba(242, 217, 37, 0.16);
  --red: #961e2d;
  --red-bright: #c23b4c;
  --paper: #f4f1ec;
  --paper-dim: #d9d4c8;
  --muted: #9a958c;
  --ink: #0c0b09;
  --radius: 3px;
  --max-width: 1180px;
  --shadow-lift: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--paper);
  margin: 0 0 0.5em 0;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.25rem; letter-spacing: 0.01em; }

p { margin: 0 0 1em 0; color: var(--paper-dim); }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-deep); }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

/* focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--charcoal-line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img { height: 52px; width: auto; }
.brand-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-transform: uppercase;
  line-height: 1.1;
}
.brand-text span { display: block; font-size: 0.62rem; color: var(--muted); letter-spacing: 0.14em; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }

.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--paper-dim);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'IBM Plex Mono', monospace;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }

/* Services dropdown */
.nav-item { position: relative; }
.nav-parent-link::after {
  content: "\25BE";
  margin-left: 6px;
  font-size: 0.7em;
  display: inline-block;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--charcoal);
  border: 1px solid var(--charcoal-line);
  border-radius: var(--radius);
  padding: 8px;
  z-index: 50;
  box-shadow: var(--shadow-lift);
}
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  display: flex;
  flex-direction: column;
}
.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 2px;
  white-space: nowrap;
}
.dropdown-menu a:hover, .dropdown-menu a.active { background: var(--black); color: var(--gold); }

/* icons placed inside buttons: fix intrinsic SVG sizing so they never
   render at browser-default dimensions and blow up the button */
.btn { display: inline-flex; align-items: center; gap: 8px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.phone-link {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--gold);
  font-size: 1.02rem;
  font-weight: 600;
  white-space: nowrap;
}
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); color: var(--ink); }
.btn-red { background: var(--red); color: var(--paper); }
.btn-red:hover { background: var(--red-bright); color: var(--paper); }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold-dim); }
.btn-outline:hover { border-color: var(--gold); }

.nav-toggle { display: none; }

/* mobile nav */
@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--charcoal-line);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 14px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    background: transparent;
    border: 1px solid var(--charcoal-line);
    border-radius: var(--radius);
    color: var(--gold);
  }
  .header-bar { position: relative; }
  .phone-link { display: none; }

  /* On mobile, show the Services submenu inline and expanded rather
     than relying on hover (which doesn't exist on touch) */
  .nav-item { width: 100%; }
  .nav-parent-link { pointer-events: none; }
  .dropdown-menu {
    display: flex !important;
    position: static;
    flex-direction: column;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 4px 0 0 14px;
  }
}

/* ---------------------------------------------------------
   Emergency ribbon (thin trust strip)
   --------------------------------------------------------- */
.trust-strip {
  background: var(--gold);
  color: var(--ink);
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: center;
  padding: 9px 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.trust-strip span { white-space: nowrap; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding: 72px 0 64px;
}
.hero-watermark {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  height: 620px;
  opacity: 0.05;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-copy p.lead {
  font-size: 1.12rem;
  color: var(--paper-dim);
  max-width: 46ch;
}
.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-cta-row .btn { padding: 15px 28px; font-size: 0.88rem; }

.hero-frame {
  position: relative;
  border: 1px solid var(--charcoal-line);
  background: var(--charcoal);
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.hero-frame img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.hero-frame figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 4px 2px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-frame { max-width: 380px; margin: 0 auto; }
}

/* ---------------------------------------------------------
   Sections generic
   --------------------------------------------------------- */
.section { padding: 76px 0; }
.section-dark { background: var(--black); }
.section-charcoal { background: var(--charcoal); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 56px 0;
  opacity: 0.65;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--charcoal-line);
}
.divider svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

/* ---------------------------------------------------------
   Service cards grid
   --------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--charcoal);
  border: 1px solid var(--charcoal-line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.service-card .icon-shield {
  width: 46px; height: 46px; color: var(--gold);
}
.service-card h3 { margin-bottom: 2px; }
.service-card p { font-size: 0.94rem; margin-bottom: 4px; flex-grow: 1; }
.service-card .card-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
}

/* ---------------------------------------------------------
   About / Bobby section
   --------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.van-frame {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lift);
}
.van-frame img { width: 100%; height: auto; }

/* ---------------------------------------------------------
   Reviews
   --------------------------------------------------------- */
.reviews-top {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}
.reviews-top img { width: 190px; height: auto; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  background: var(--charcoal);
  border: 1px solid var(--charcoal-line);
  border-radius: var(--radius);
  padding: 26px;
}
.review-stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.15em; margin-bottom: 10px; }
.review-card p { color: var(--paper-dim); font-size: 0.96rem; font-style: italic; }
.review-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------
   FAQ (native details/summary, no JS)
   --------------------------------------------------------- */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--charcoal-line);
}
.faq-item summary {
  padding: 20px 4px;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-size: 1.02rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: 'IBM Plex Mono', monospace;
  color: var(--gold);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 4px 22px; margin: 0; }

/* ---------------------------------------------------------
   Coverage
   --------------------------------------------------------- */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 22px;
}
@media (max-width: 760px) { .coverage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .coverage-grid { grid-template-columns: 1fr; } }
.coverage-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--charcoal-line);
  color: var(--paper-dim);
  font-size: 0.96rem;
}
.coverage-item svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* ---------------------------------------------------------
   CTA banner
   --------------------------------------------------------- */
.cta-banner {
  background: var(--red);
  padding: 54px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--paper); }
.cta-banner p { color: rgba(244,241,236,0.85); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-banner .btn-gold { margin-top: 10px; }

/* ---------------------------------------------------------
   Contact page
   --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--charcoal);
  border: 1px solid var(--charcoal-line);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--charcoal-line);
}
.contact-row:last-child { border-bottom: none; }
.contact-row svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-row a, .contact-row span.value { color: var(--paper); font-size: 1rem; }
.contact-row .label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }

/* ---------------------------------------------------------
   Page hero (inner pages, no photo)
   --------------------------------------------------------- */
.page-hero {
  background: var(--black);
  padding: 58px 0 44px;
  border-bottom: 1px solid var(--charcoal-line);
}
.breadcrumb {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 8px; color: var(--charcoal-line); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--charcoal-line);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-brand img { height: 60px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; max-width: 32ch; }
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid var(--charcoal-line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold-dim); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid var(--charcoal-line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------------------------------------------------------
   Sticky mobile call button
   --------------------------------------------------------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--red);
  border-top: 1px solid rgba(0,0,0,0.3);
}
.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  color: var(--paper);
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
  font-weight: 700;
}
.mobile-call-bar svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 58px; }
}

/* ---------------------------------------------------------
   Generic content page (privacy / terms)
   --------------------------------------------------------- */
.prose h2 { margin-top: 1.6em; }
.prose ul { color: var(--paper-dim); padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.error-page .code {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--gold);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
