/* ==========================================================================
   Lockstar Locksmiths — custom styles
   Direction: "brass in the dark" — warm charcoal base, logo gold as metal
   caught in light, two warm-paper relief rows per page. Editorial rows,
   never card grids. Type: Barlow Condensed / Barlow / Lora italic.
   Signature: the key-bitting rule (section divider cut like a key).
   ========================================================================== */

:root {
  --coal: #171512;
  --coal-raise: #211e1a;
  --coal-line: rgba(245, 240, 230, 0.14);
  --paper: #ffffff;
  --paper-deep: #f4f3f0;
  --ink: #1b1813;
  --ink-line: rgba(27, 24, 19, 0.16);
  --gold: #f0b41c;
  --gold-deep: #d69e0e;
  --brass: #9c7a2e;
  --white-warm: #fbf8f2;
  --stone: #a79e8f;
  --stone-dark: #6b6355;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;   /* display sizes ONLY — never small text */
  --font-strong: 'Montserrat', 'Avenir Next', sans-serif;           /* nav, labels, buttons, chips */
  --font-body: 'Barlow', -apple-system, 'Helvetica Neue', sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--white-warm);
  background: var(--coal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--wide { width: min(1400px, 100% - 2 * var(--gutter)); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }

/* --- Type roles -------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.94;
}
.display--hero { font-size: clamp(3.2rem, 9.5vw, 7.5rem); }
.display--xl   { font-size: clamp(2.5rem, 6.5vw, 4.5rem); }
.display--lg   { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.display--md   { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.serif-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.45;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-strong);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; }

.on-paper { background: var(--paper); color: var(--ink); }
.on-paper .eyebrow { color: var(--brass); }
.muted { color: var(--stone); }
.on-paper .muted { color: var(--stone-dark); }

/* --- Key-bitting rule (signature divider) ------------------------------ */

.key-rule {
  border: 0;
  height: 14px;
  margin: 0 auto;
  width: min(320px, 60%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 14' fill='none'%3E%3Cpath d='M0 11h38l8-8h14l6 6 10-6 8 8h16l10-9 8 9h20l6-6 12 6 8-8 10 8h146' stroke='%239c7a2e' stroke-width='1.6'/%3E%3Ccircle cx='310' cy='11' r='2.6' fill='%23f0b41c'/%3E%3C/svg%3E");
  opacity: 0.9;
}

/* --- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-strong);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 28px;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--gold-deep); }
.btn--ghost { border-color: var(--coal-line); color: var(--white-warm); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.on-paper .btn--ghost { border-color: var(--ink-line); color: var(--ink); }
.on-paper .btn--ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* --- Nav ---------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--coal);            /* solid — no backdrop-filter (fixed-drawer trap) */
  border-bottom: 1px solid var(--coal-line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.7rem;
}
.nav-brand { display: inline-flex; align-items: center; text-decoration: none; }
.nav-brand img {
  height: 48px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;                   /* the van-decal plate */
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-family: var(--font-strong);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--white-warm);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--gold); border-color: var(--gold); }
.nav-call {
  font-family: var(--font-strong);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--gold);
  padding: 0.55rem 1.4rem;
  border-radius: 28px;
  white-space: nowrap;
  transition: background 0.2s var(--ease);
}
.nav-call:hover { background: var(--gold-deep); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
  }
  .nav-toggle span { width: 26px; height: 2px; background: var(--white-warm); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--coal);
    border-bottom: 1px solid var(--coal-line);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-link { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--coal-line); font-size: 0.95rem; }
  .nav-call { display: inline-flex; margin-top: 1rem; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: min(88vh, 860px);
  padding-block: clamp(4rem, 10vw, 7rem);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(23, 21, 18, 0.94) 0%, rgba(23, 21, 18, 0.82) 42%, rgba(23, 21, 18, 0.38) 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-content h1 { max-width: 12ch; }
.hero-content .serif-lead { max-width: 44ch; margin-top: 1.5rem; color: var(--white-warm); }

.hero--page { min-height: min(62vh, 620px); }

.hero-phone {
  margin-top: 2.4rem;
}
.hero-phone a {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold);
  border-bottom: 3px solid var(--gold);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero-phone a:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.hero-phone .hero-phone-alt {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--stone);
}
.hero-phone .hero-phone-alt a {
  font: inherit;
  color: var(--white-warm);
  border-bottom: 1px solid var(--coal-line);
  letter-spacing: 0.03em;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--coal-line);
  font-family: var(--font-strong);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--stone);
}
.trust-strip strong { color: var(--gold); font-weight: 700; }

/* --- Sections ------------------------------------------------------------ */

.section { padding-block: var(--section-y); }
.section-head { max-width: 60ch; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }

/* Editorial service rows (never cards) */
.svc-rows { border-top: 1px solid var(--ink-line); }
.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
  gap: 1rem 2.5rem;
  align-items: baseline;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--ink-line);
  text-decoration: none;
  transition: background 0.2s var(--ease);
}
.svc-row:hover { background: var(--paper-deep); }
.svc-row h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: 0.02em;
}
.svc-row p { margin: 0; color: var(--stone-dark); font-family: var(--font-body); font-weight: 500; font-size: 1.0625rem; line-height: 1.6; }
.svc-row .svc-go {
  font-family: var(--font-strong);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  color: var(--brass);
  white-space: nowrap;
}
.svc-row:hover .svc-go { color: var(--ink); }
@media (max-width: 720px) {
  .svc-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .svc-row .svc-go { display: none; }
}

/* Split rows (image + copy) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split figure { margin: 0; }
.split img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Reviews */
.review-band blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.55;
  color: var(--white-warm);
}
.on-paper .review-band blockquote { color: var(--ink); }
.review-band figcaption {
  margin-top: 1rem;
  font-family: var(--font-strong);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--stone);
}
.on-paper .review-band figcaption { color: var(--stone-dark); }
.review-stars { color: var(--gold); letter-spacing: 0.18em; font-size: 0.95rem; margin-bottom: 0.9rem; }
.on-paper .review-stars { color: var(--gold-deep); }
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.review-score {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 1.6rem;
}
.review-score .score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  line-height: 1;
  color: var(--gold);
}
.review-score .score-of { color: var(--stone); font-size: 1rem; }

/* Brand strip */
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-line);
}
.brand-strip img {
  height: clamp(28px, 4vw, 42px);
  width: auto;
  filter: grayscale(1) contrast(0.85);
  opacity: 0.75;
}

/* Suburb chips */
.area-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.area-list li {
  font-family: var(--font-strong);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.9rem;
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--ink-line);
  border-radius: 28px;
  color: var(--stone-dark);
  background: var(--paper-deep);
}
.on-dark-band .area-list li { border-color: var(--coal-line); color: var(--stone); }

/* Checklist (service pages) */
.check-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.check-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.2rem;
  border-bottom: 1px solid var(--ink-line);
  font-size: 1.05rem;
}
.check-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0.85rem;
  color: var(--brass);
  font-size: 0.95rem;
}

/* FAQ */
.faq { border-top: 1px solid var(--ink-line); }
.faq details { border-bottom: 1px solid var(--ink-line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  font-family: var(--font-strong);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brass); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 0 1.4rem; max-width: 62ch; color: var(--stone-dark); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .hero-phone { margin-top: 1.8rem; }
.cta-band .cta-note { margin-top: 1.4rem; color: var(--stone); font-size: 1rem; }

/* --- Contact form -------------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 2rem; }
.form-grid .form-field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field label {
  display: block;
  font-family: var(--font-strong);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  margin-bottom: 0.45rem;
  color: var(--stone);
}
.on-paper .form-field label { color: var(--stone-dark); }
.form-field input, .form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white-warm);
  background: var(--coal-raise);
  border: 1px solid var(--coal-line);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease);
}
.on-paper .form-field input, .on-paper .form-field textarea {
  color: var(--ink);
  background: var(--white-warm);
  border-color: var(--ink-line);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--gold); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-status { margin-top: 1rem; font-weight: 600; display: none; }
.form-status.is-ok { display: block; color: var(--gold); }
.on-paper .form-status.is-ok { color: var(--brass); }
.form-status.is-err { display: block; color: #d9573a; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--coal);
  border-top: 1px solid var(--coal-line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.98rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 54px; width: auto; background: #fff; border-radius: 6px; padding: 5px 12px; }
.footer-brand p { margin-top: 1.1rem; color: var(--stone); max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-strong);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--stone); text-decoration: none; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-legal {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--coal-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  color: var(--stone);
  font-size: 0.9rem;
}

/* --- Reveal -------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav-call { transition: none; }
}
