/* Legacy Locksmith — design system. Mobile-first, no framework, minimal CSS for speed. */

:root {
  --color-navy-950: #0b1524;
  --color-navy-900: #0f1e33;
  --color-navy-800: #16294510;
  --color-navy-700: #1c3252;
  --color-blue-700: #1d4ed8;
  --color-blue-900: #1e3a8a;
  --color-brass-500: #c9a54e;
  --color-brass-400: #d8bc72;
  --color-brass-100: #f6efdc;
  --color-urgent-600: #c8412f;
  --color-urgent-700: #a8331f;
  --color-ink-900: #1c1f26;
  --color-ink-700: #454b57;
  --color-ink-500: #6b7280;
  --color-paper-0: #ffffff;
  --color-paper-50: #f8f6f2;
  --color-paper-100: #f1ede4;
  --color-line: #e4dfd3;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 10px rgba(15, 30, 51, 0.08);
  --shadow-card-hover: 0 10px 30px rgba(15, 30, 51, 0.14);
  --container-w: 1160px;
  --font-head: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink-900);
  background: var(--color-paper-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* space for sticky mobile call bar */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-navy-900);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }

/* Service pages: tighten and equalise the heading-to-content gap (h2 and h3
   otherwise inherit different pixel margins from the shared em-based rule
   above), without affecting heading spacing anywhere else on the site. */
body.service-page main h2,
body.service-page main h3 {
  margin-bottom: 0.625rem;
}
p { margin: 0 0 1em; color: var(--color-ink-700); }
ul, ol { color: var(--color-ink-700); }
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 56px 0; }
.section-alt { background: var(--color-paper-50); }
.section-navy { background: var(--color-blue-700); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #cdd6e4; }
.section-navy .info-list li { color: #eef2fc; }
.section-navy .info-list svg { color: var(--color-brass-400); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brass-500);
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1;
}
.btn-call {
  background: var(--color-urgent-600);
  color: #fff;
}
.btn-call:hover { background: var(--color-urgent-700); }
.btn-primary {
  background: var(--color-blue-700);
  color: #fff;
}
.btn-primary:hover { background: var(--color-blue-900); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--color-navy-900);
  color: var(--color-navy-900);
}
.btn-outline-dark:hover { background: var(--color-navy-900); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--color-line);
  -webkit-backdrop-filter: saturate(180%) blur(6px);
  backdrop-filter: saturate(180%) blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--color-navy-900);
  font-size: 1.15rem;
  white-space: nowrap;
}
.brand-logo-img { height: 68px; width: auto; display: block; }
@media (min-width: 960px) {
  .brand-logo-img { height: 92px; }
}
.footer-logo-plate {
  display: inline-flex;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 14px;
}
.footer-logo-plate img { height: 40px; width: auto; display: block; }
.brand-badge {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--color-navy-900);
  color: var(--color-brass-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone {
  display: none;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 1px solid var(--color-line);
  background: #fff;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(320px, 86vw);
  background: var(--color-navy-900);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 60;
  overflow-y: auto;
  padding: 24px;
}
.main-nav.is-open { transform: translateX(0); }
.nav-scrim {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(11,21,36,0.5);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }
.nav-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.nav-close button {
  background: none; border: none; color: #fff; cursor: pointer;
  width: 36px; height: 36px;
}
.main-nav ul { list-style: none; padding: 0; margin: 0; }
.main-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.main-nav a {
  display: block;
  padding: 14px 4px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.main-nav .sub-list { padding-left: 12px; display: none; }
.main-nav .sub-list.is-open { display: block; }
.main-nav .sub-list a { font-weight: 500; color: #cdd6e4; padding: 10px 4px; }
.nav-cta { margin-top: 20px; }

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .nav-toggle { display: none; }
  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--color-navy-900);
    text-decoration: none;
    font-size: 1rem;
  }
  .main-nav {
    position: static;
    width: auto;
    background: none;
    transform: none;
    padding: 0;
    overflow: visible;
    flex: 1;
  }
  .main-nav .nav-close { display: none; }
  .main-nav > ul {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
  }
  .main-nav > ul > li { border: none; position: relative; }
  .main-nav a { color: var(--color-navy-900); padding: 10px 12px; border-radius: 8px; font-size: 0.95rem; font-weight: 500; }
  .main-nav a:hover { background: var(--color-paper-100); }
  .main-nav .has-children:hover .sub-list,
  .main-nav .has-children:focus-within .sub-list {
    display: block;
  }
  .main-nav .sub-list {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card-hover);
    min-width: 260px;
    padding: 8px;
    z-index: 70;
  }
  .main-nav .sub-list a { color: var(--color-ink-900); padding: 10px 12px; }
  .main-nav .sub-list a:hover { background: var(--color-paper-50); }
  .nav-cta { display: none; }
  .header-inner { flex-wrap: nowrap; }

  /* Sticky quick-menu button (desktop only) — an additional way to reach the
     full nav while scrolling, alongside the always-visible inline links above. */
  .quick-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 8px;
    border: 1px solid var(--color-line);
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
  }
  .quick-nav-toggle svg { width: 22px; height: 22px; }
  .quick-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(320px, 86vw);
    background: var(--color-navy-900);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 60;
    overflow-y: auto;
    padding: 24px;
  }
  .quick-nav.is-open { transform: translateX(0); }
  .quick-nav ul { list-style: none; padding: 0; margin: 0; }
  .quick-nav li { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .quick-nav a {
    display: block;
    padding: 14px 4px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
  }
  .quick-nav .nav-cta { display: block; margin-top: 20px; }
}
@media (max-width: 959px) {
  .quick-nav-toggle, .quick-nav { display: none; }
}

/* Sticky mobile call bar */
.mobile-call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--color-blue-700);
  padding: 10px 16px;
  display: flex;
  gap: 10px;
}
.mobile-call-bar .btn { flex: 1; }
@media (min-width: 960px) {
  .mobile-call-bar { display: none; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-navy-950);
  color: #fff;
  padding: 96px 0 80px;
}
.hero .container { position: relative; z-index: 2; }
.hero-bg-media {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
}
.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 78%;
  display: block;
}
.hero-bg-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(11,21,36,0.88) 0%, rgba(11,21,36,0.78) 38%, rgba(20,45,90,0.52) 70%, rgba(20,45,90,0.3) 100%);
}
.hero-image-credit {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}
.hero h1 { color: #fff; }
.hero-lede { color: #cdd6e4; font-size: 1.1rem; max-width: 620px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.hero-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero-rating-stars { display: inline-flex; gap: 2px; color: var(--color-brass-400); flex-shrink: 0; }
.hero-rating-stars svg { width: 15px; height: 15px; }
.hero-rating-text { font-size: 0.86rem; font-weight: 600; color: #e6ebf3; letter-spacing: 0.01em; }
.hero-rating-sep { margin: 0 8px; color: rgba(255,255,255,0.35); }
@media (max-width: 640px) {
  .hero { padding: 72px 0 60px; }
  .hero-bg-media img { object-position: center 82%; }
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #e6ebf3;
  font-weight: 600;
}
.trust-item svg { width: 18px; height: 18px; color: var(--color-brass-400); flex-shrink: 0; }

/* Hero split layout with illustrative image */
.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: 1fr;
}
.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  line-height: 0;
}
.hero-media img { width: 100%; height: auto; display: block; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* Illustrative marketing image used within page content (not literal photography) */
.content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: 0 0 8px;
  line-height: 0;
}
.content-image img { width: 100%; height: auto; display: block; }
.image-disclaimer {
  font-size: 0.78rem;
  color: var(--color-ink-500);
  margin: 0 0 24px;
  font-style: italic;
}
/* A section containing only a banner image (+ its disclaimer caption) needs less
   vertical padding than a full content section, otherwise it stacks with the next
   section's top padding into an oversized empty gap. */
.section-image-banner { padding: 40px 0 8px; }

.page-hero {
  background: linear-gradient(180deg, var(--color-navy-950) 0%, var(--color-navy-900) 100%);
  color: #fff;
  padding: 44px 0 40px;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero .hero-lede { color: #cdd6e4; }
.breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: #a9b6c9;
}
.breadcrumbs a { color: #a9b6c9; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #5b6b83; }

/* Grids & cards */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-link { text-decoration: none; display: block; height: 100%; }
.card-link:hover .card { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-paper-100);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
/* Cards without an image (e.g. icon-only service cards, quick-nav cards, form cards)
   never got a .card-body wrapper, so re-apply padding directly to keep them from
   looking cramped now that .card itself is padding:0 for the image-card layout. */
.card:not(:has(.card-media)) { padding: 26px; }
.card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--color-brass-100);
  color: var(--color-navy-900);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; font-weight: 600; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card-cta { margin-top: 14px; font-weight: 700; color: var(--color-navy-900); font-size: 0.92rem; }

/* Two-column content layout */
.split {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 860px) {
  .split-2 { grid-template-columns: 1.1fr 0.9fr; }
}
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--color-ink-700);
}
.info-list svg { width: 22px; height: 22px; color: var(--color-brass-500); flex-shrink: 0; margin-top: 2px; }

.side-panel {
  background: var(--color-paper-50);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.side-panel h3 { margin-bottom: 12px; }

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--color-line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 4px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-navy-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s ease; color: var(--color-brass-500); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.is-open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 4px 18px; }

/* Suburb chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-paper-100);
  border: 1px solid var(--color-line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy-900);
  text-decoration: none;
}
.chip:hover { background: var(--color-brass-100); border-color: var(--color-brass-400); }
.chip-static {
  color: var(--color-ink-700);
  font-weight: 500;
  background: transparent;
  border-style: dashed;
}

/* Google Reviews section */
.google-reviews-cta {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-paper-50);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.google-reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-navy-900);
  margin-bottom: 14px;
}

/* CTA band */
.cta-band {
  background: var(--color-blue-700);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd6e4; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--color-navy-950);
  color: #cdd6e4;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand { font-family: var(--font-head); color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #aab6c8; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #7f8ca0;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.max-w { max-width: 720px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.section-head { max-width: 680px; margin: 0 0 32px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
