/* The United Auto Locksmith - dark theme (black and amber).
   The page templates use the same class names for both themes, so the "white" and "soft" sections are mapped to black and charcoal here. */

:root {
  --black: #000;
  --panel: #121212;
  --card: #1a1a1a;
  --white: #fff;
  --text: #f2f2f2;
  --muted: #b5b5b5;
  --amber: #ffb300;
  --amber-hover: #ffd04d;
  --line: #2a2a2a;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--black);
  padding-bottom: 5.5rem;
}
@media (min-width: 821px) { body { padding-bottom: 0; } }

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 64ch; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.sec--amber :focus-visible { outline-color: var(--black); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--amber); color: var(--black); padding: .75rem 1rem; font-weight: 700;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Type */
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 90%; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .9rem; }
h3 { font-size: 1.3rem; font-weight: 700; font-stretch: 95%; line-height: 1.2; letter-spacing: 0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }
.small { font-size: .95rem; }
.muted { color: var(--muted); }

/* Sections: the light theme's class names, mapped to dark */
.sec { padding-block: clamp(3.5rem, 7vw, 6rem); }
.sec--white, .sec--dark { background: var(--black); }
.sec--soft { background: var(--panel); border-block: 1px solid var(--line); }
#makes, #faq { background: var(--panel); border-block: 1px solid var(--line); }
#areas { background: var(--black); border-block: 0; }
.sec--amber { background: var(--amber); color: var(--black); }
.sec--amber .lead { color: var(--black); }
.sec-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

/* Top bar */
.topbar { background: var(--amber); color: var(--black); font-size: .92rem; font-weight: 600; }
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 2.4rem; padding-block: .3rem;
}
.topbar a { text-decoration: none; font-weight: 800; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 600px) { .tb-long { display: none; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem; position: relative;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand svg { width: 2.75rem; height: 2.75rem; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: .2rem; line-height: 1; }
.brand-text small {
  font-size: .72rem; font-weight: 600; font-stretch: 80%;
  letter-spacing: .24em; text-transform: uppercase; color: var(--amber);
}
.brand-text strong {
  font-size: 1.4rem; font-weight: 800; font-stretch: 80%;
  text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; color: var(--white);
}
@media (max-width: 480px) {
  .brand { gap: .55rem; }
  .brand svg { width: 2.4rem; height: 2.4rem; }
  .brand-text small { font-size: .62rem; letter-spacing: .2em; }
  .brand-text strong { font-size: 1.1rem; }
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.plate) { text-decoration: none; font-weight: 600; }
.nav a:not(.plate):hover { color: var(--amber); }

.nav-toggle {
  display: none; align-items: center; min-height: 2.75rem; padding: 0 1rem;
  background: transparent; color: var(--white); border: 1px solid var(--line);
  border-radius: .6rem; font: inherit; font-weight: 700; cursor: pointer;
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.1rem;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--black); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.plate) { font-size: 1.2rem; }
}

/* The plate: phone numbers set like a UK rear number plate */
.plate {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--amber); color: var(--black);
  text-decoration: none; white-space: nowrap;
  font-weight: 800; font-stretch: 78%; letter-spacing: .05em; line-height: 1;
  border-radius: .55rem; padding: .55em 1em;
  outline: 2px solid var(--black); outline-offset: -.42rem;
}
.plate:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
.plate:hover { background: var(--amber-hover); }
.plate--xl { font-size: clamp(2rem, 9vw, 2.9rem); }
.plate--md { font-size: clamp(2rem, 6vw, 2.5rem); }
.plate--sm { font-size: 1.45rem; padding: .4em .8em; outline-offset: -.32rem; }
.plate--ink { background: var(--black); color: var(--amber); outline-color: var(--amber); }
.plate--ink:hover { background: var(--panel); color: var(--amber-hover); outline-color: var(--amber-hover); }
.sec--amber .plate--ink:focus-visible { outline: 3px solid var(--black); outline-offset: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.4rem; padding: 0 1.6rem; border-radius: .7rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid var(--amber); color: var(--amber); background: transparent;
}
.btn:hover { background: var(--amber); color: var(--black); }
.btn--solid { background: var(--amber); color: var(--black); }
.btn--solid:hover { background: var(--amber-hover); border-color: var(--amber-hover); }

/* Icons */
.ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.9rem; height: 2.9rem; border-radius: .8rem;
  background: var(--amber); color: var(--black);
}
.ico svg {
  width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.25rem, 5vw, 4rem);
  background: radial-gradient(46rem 26rem at 88% 8%, rgba(255, 179, 0, .16), transparent 65%), var(--black);
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.hero h1 { max-width: 15ch; margin-bottom: 1.1rem; }
.hero .lead { margin-bottom: 1.75rem; color: #d6d6d6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.hero-note { margin: .85rem 0 0; color: var(--muted); font-size: .95rem; }
.hero-art { display: none; }
@media (min-width: 960px) { .hero-art { display: block; } }
.hero-art svg { width: 100%; height: auto; max-width: 520px; margin-inline: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6)); }

.facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); margin-top: clamp(2rem, 5vw, 3.25rem); }
.fact {
  display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: var(--radius);
}
.fact strong { display: block; line-height: 1.25; }
.fact div span { color: var(--muted); font-size: .93rem; line-height: 1.35; display: block; }

/* Inner page hero */
.page-hero { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 20ch; margin-bottom: 1rem; }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .6rem; }
.crumbs li + li::before { content: "/"; margin-right: .6rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--amber); }

/* Cards */
.cards { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  scroll-margin-top: 6rem;
}
.card:hover { border-color: var(--amber); }
.card h3 { margin-top: .5rem; }
.card p { margin: 0; color: var(--muted); }
.card p.have { color: var(--text); margin-top: .6rem; font-weight: 600; }
.card ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.card li { margin-bottom: .3rem; }
.sec-cta { margin-top: 2rem; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; display: grid; gap: 1.1rem; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.7rem; height: 2.7rem; border-radius: 50%;
  background: var(--amber); color: var(--black); font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { margin: 0; color: var(--muted); }

/* Makes */
.makes { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.75rem; }
.makes li {
  white-space: nowrap; padding: .45rem 1rem; font-size: 1.05rem; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); border-radius: .6rem;
}
.makes li:hover { border-color: var(--amber); color: var(--amber); }

/* Areas */
.area-group + .area-group { margin-top: 2.25rem; }
.area-group h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.areas { list-style: none; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.areas a {
  display: flex; align-items: center; gap: .8rem; padding: .95rem 1.1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; font-weight: 700;
}
#areas .areas a { background: var(--panel); }
.areas a:hover { border-color: var(--amber); color: var(--amber); }
.areas .pin {
  width: 1.3rem; height: 1.3rem; flex: none; color: var(--amber);
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.areas .name { flex: 1; }
.areas .pc { font-size: .85rem; font-weight: 500; color: var(--muted); }

.map {
  width: 100%; height: clamp(18rem, 45vw, 26rem); display: block;
  border: 1px solid var(--line); border-radius: var(--radius); margin-top: 2.25rem; background: var(--card);
}

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.tags a { font-weight: 600; text-underline-offset: .25em; text-decoration-thickness: 2px; }
.tags a:hover { color: var(--amber); }

.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.two-col h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .7rem; padding: 0 1.25rem; }
.faq details[open] { border-color: var(--amber); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; font-size: 1.15rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; font-weight: 600; color: var(--amber); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.1rem; margin: 0; color: var(--muted); }

/* Quote */
.quote { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .quote { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; } }
.quote h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.quote-call { margin-top: 1.75rem; }
.quote-call p { margin: .75rem 0 0; }
.quote .plate--md { font-size: clamp(1.7rem, 7vw, 2.1rem); max-width: 100%; }

.form { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); position: relative; }
@media (min-width: 720px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .full { grid-column: 1 / -1; }
}
.form-card { background: var(--black); color: var(--text); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 3.1rem; padding: .75rem .9rem;
  font: inherit; color: var(--white); background: #1c1c1c;
  border: 1px solid #3a3a3a; border-radius: .6rem;
}
.form input::placeholder, .form textarea::placeholder { color: #8c8c8c; }
.form textarea { min-height: 7rem; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 0; border-color: var(--amber);
}
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form [hidden] { display: none; }
.form .btn { width: 100%; }
.form .small { color: var(--muted); margin: 0; }
.form .small a { color: var(--amber); }
.form-status { margin: 0; font-weight: 700; min-height: 1.5em; color: var(--amber); }

/* Privacy / text pages */
.prose h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-top: 2.25rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.25rem; margin-bottom: 1em; }
.prose a { color: var(--amber); }

/* Footer */
.site-footer { background: var(--black); padding-block: 3.5rem 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 3rem; } }
.site-footer h2 { font-size: 1.1rem; margin-bottom: .9rem; color: var(--amber); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { text-decoration: none; }
.site-footer a, .site-footer address { overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.site-footer p, .site-footer address { color: var(--muted); }
.site-footer address { font-style: normal; margin-bottom: .9rem; line-height: 1.5; }
.footer-base {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  color: var(--muted); font-size: .92rem;
}

/* Sticky call bar on phones */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: .6rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: var(--black); border-top: 2px solid var(--amber);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.5rem; border-radius: .7rem; text-decoration: none; font-weight: 800; font-size: 1.2rem;
}
.callbar .call { background: var(--amber); color: var(--black); }
.callbar .call svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }
.callbar .quote-link { border: 2px solid var(--amber); color: var(--amber); font-weight: 700; }
@media (min-width: 821px) { .callbar { display: none; } }

/* WhatsApp */
.wa-ico { width: 1.3rem; height: 1.3rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--ink { border-color: var(--black); color: var(--black); }
.btn--ink:hover { background: var(--black); color: var(--amber); }
.site-footer .wa-link { display: inline-flex; align-items: center; gap: .45rem; }
.callbar { grid-template-columns: 1.25fr 1.25fr .85fr; gap: .5rem; }
.callbar a { font-size: 1.02rem; padding-inline: .3rem; text-align: center; }
.callbar .call svg { width: 1.2rem; height: 1.2rem; }
.callbar .wa { border: 2px solid var(--amber); color: var(--amber); font-weight: 700; }
@media (max-width: 370px) { .callbar .wa-ico { display: none; } .callbar a { font-size: .95rem; } }

/* Smaller car and key art on inner pages */
.page-hero .wrap { position: relative; }
.hero-art--sm { display: none; }
@media (min-width: 1400px) {
  .hero-art--sm { display: block; position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: 300px; opacity: .95; pointer-events: none; }
}
