/* PawnDrive — premium automotive theme (mobile-first) */
:root {
  --bg: #0c0f14;
  --bg-raise: #141922;
  --bg-card: #ffffff;
  --ink: #0e1420;
  --ink-soft: #414c5e;
  --text-on-dark: #f3f6fb;
  --text-on-dark-soft: #b8c2d4;
  --accent: #2f7bff;
  --accent-deep: #1660e0;
  --line: rgba(255,255,255,.12);
  --line-light: #e3e8f0;
  --radius: 14px;
  --font-display: "Space Grotesk", "Archivo", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: #f6f8fb;
}
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,15,20,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand img { display: block; width: 150px; height: auto; }
.main-nav ul { display: none; list-style: none; margin: 0; padding: 0; }
.main-nav.open ul { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg-raise); padding: .75rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); }
.main-nav a { color: var(--text-on-dark); text-decoration: none; display: block; padding: .65rem .25rem; min-height: 44px; font-weight: 500; }
.main-nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; justify-content: center; align-items: center; width: 48px; height: 48px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-toggle .bar { width: 22px; height: 2px; background: var(--text-on-dark); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
.nav-cta a { color: #fff; }
.nav-cta .btn { margin-top: .4rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  border-radius: 999px; padding: .8rem 1.6rem; text-decoration: none;
  border: 0; cursor: pointer; font-size: 1rem; line-height: 1.2;
  min-height: 48px; text-align: center;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(47,123,255,.35); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--accent-deep); border: 2px solid var(--accent); }
.btn-ghost:hover { background: rgba(47,123,255,.08); }
.btn-sm { padding: .55rem 1.15rem; min-height: 44px; font-size: .95rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--bg); color: var(--text-on-dark); overflow: clip; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,15,20,.35), rgba(12,15,20,.92) 82%); }
.hero-grid { position: relative; display: grid; gap: 2rem; padding: 3rem 0 3.5rem; }
.hero-copy h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); margin: 0 0 1rem; }
.hero-sub { font-size: 1.12rem; color: var(--text-on-dark-soft); max-width: 34rem; }
.hero-points { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .55rem; }
.hero-points li { padding-left: 1.6rem; position: relative; color: var(--text-on-dark); }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .8rem; height: .8rem;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(47,123,255,.8);
}

/* ---------- enquiry form ---------- */
.form-card {
  background: var(--bg-card); color: var(--ink);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.form-card h2 { margin: 0 0 .25rem; font-size: 1.45rem; }
.form-intro { margin: 0 0 1.1rem; color: var(--ink-soft); font-size: .95rem; }
.form-card-page { margin-top: 2rem; box-shadow: 0 10px 34px rgba(14,20,32,.12); border: 1px solid var(--line-light); }
.enquiry-form .field { margin-bottom: .9rem; }
.enquiry-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.enquiry-form label span[aria-hidden] { color: var(--accent-deep); }
.enquiry-form .opt { font-weight: 400; color: var(--ink-soft); }
.enquiry-form input[type="text"], .enquiry-form input[type="tel"], .enquiry-form textarea {
  width: 100%; font: inherit; padding: .8rem .9rem; min-height: 48px;
  border: 1.5px solid var(--line-light); border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.enquiry-form input:focus, .enquiry-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,123,255,.18); outline: none; }
.enquiry-form input:user-invalid { border-color: #c62828; }
.field-consent .checkbox { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--ink-soft); }
.field-consent input { width: 22px; height: 22px; margin-top: .15rem; flex: none; accent-color: var(--accent); }
.form-note { font-size: .82rem; color: var(--ink-soft); margin: .8rem 0 0; text-align: center; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.alert { border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .95rem; }
.alert-success { background: #e7f6ec; color: #145a2e; border: 1px solid #b8e2c6; }
.alert-error { background: #fdecea; color: #8f1d12; border: 1px solid #f3c1ba; }

/* ---------- sections ---------- */
.section { padding: 3.2rem 0; }
.section-alt { background: #fff; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 1.6rem; }
.section-link { margin-top: 1.6rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.4rem 4.2rem; position: relative; }
.step-num {
  position: absolute; left: 1.1rem; top: 1.15rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700;
  display: grid; place-items: center;
}
.step h3, .benefit h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.step p, .benefit p { margin: 0; color: var(--ink-soft); }
.benefits { display: grid; gap: 1.2rem; }
.benefit { background: #f6f8fb; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 1.4rem; }
.faq { border: 1px solid var(--line-light); border-radius: 10px; background: #fff; margin-bottom: .7rem; overflow: hidden; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; min-height: 48px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.3rem; color: var(--accent-deep); flex: none; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }
.section-cta { background: var(--bg); color: var(--text-on-dark); }
.section-cta p { color: var(--text-on-dark-soft); margin-bottom: 1.4rem; }
.section-cta h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 0; }

/* ---------- page content ---------- */
.page-content h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-top: 0; }
.page-content h2 { margin-top: 1.8rem; }
.page-content a { color: var(--accent-deep); }

/* ---------- footer ---------- */
.floating-cta {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-family: var(--font-display);
  padding: .85rem 1.4rem; min-height: 48px; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(47,123,255,.45);
  display: inline-flex; align-items: center;
}
.site-footer { background: var(--bg); color: var(--text-on-dark-soft); margin-top: 0; }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0 2rem; }
.footer-logo { margin-bottom: 1rem; }
.site-footer a { color: var(--text-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-h { color: #fff; font-size: 1rem; margin: 0 0 .7rem; }
.footer-bar { border-top: 1px solid var(--line); padding: 1.2rem 0 calc(1.2rem + env(safe-area-inset-bottom)); font-size: .85rem; }

/* ---------- admin ---------- */
.admin-body { background: #eef1f6; min-height: 100dvh; }
.admin-shell { width: min(1080px, 100% - 2rem); margin-inline: auto; padding: 1.5rem 0 4rem; }
.admin-topbar { background: var(--bg); color: var(--text-on-dark); padding: .8rem 0; }
.admin-topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.admin-topbar a { color: var(--text-on-dark); text-decoration: none; margin-left: 1rem; }
.admin-topbar a:hover { color: var(--accent); }
.admin-card { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.2rem; }
.admin-card h1, .admin-card h2 { margin-top: 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th, .admin-table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line-light); vertical-align: top; }
.admin-table th { font-family: var(--font-display); }
.admin-table tr.unread td { font-weight: 600; background: #f2f7ff; }
.admin-form label { display: block; font-weight: 600; margin: .9rem 0 .3rem; }
.admin-form input[type="text"], .admin-form input[type="password"], .admin-form input[type="email"], .admin-form input[type="url"], .admin-form textarea, .admin-form select {
  width: 100%; font: inherit; padding: .65rem .8rem; border: 1.5px solid var(--line-light); border-radius: 8px; min-height: 46px; background: #fff;
}
.admin-form textarea { min-height: 180px; font-family: inherit; }
.admin-form .hint { font-size: .82rem; color: var(--ink-soft); margin-top: .25rem; }
.admin-login { min-height: 100dvh; display: grid; place-items: center; background: var(--bg); padding: 1rem; }
.admin-login .form-card { width: min(420px, 100%); }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.badge-ok { background: #e7f6ec; color: #145a2e; }
.badge-warn { background: #fff4e0; color: #7a4b00; }
.badge-muted { background: #eceff4; color: var(--ink-soft); }
.admin-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.flash { border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1rem; background: #e7f6ec; color: #145a2e; border: 1px solid #b8e2c6; }
.flash-error { background: #fdecea; color: #8f1d12; border-color: #f3c1ba; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.media-grid figure { margin: 0; background: #f6f8fb; border: 1px solid var(--line-light); border-radius: 10px; padding: .6rem; }
.media-grid img { border-radius: 6px; }
.media-grid figcaption { font-size: .75rem; word-break: break-all; color: var(--ink-soft); margin-top: .4rem; }

/* ---------- breakpoints ---------- */
@media (min-width: 720px) {
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 4.5rem 0; }
}
@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .main-nav ul { display: flex; align-items: center; gap: 1.4rem; }
  .main-nav a { padding: .4rem 0; min-height: 44px; display: inline-flex; align-items: center; }
  .nav-cta .btn { margin-top: 0; }
  .floating-cta { display: none; }
}

/* competitor-informed additions */
.hero-meta { margin: 1.4rem 0 0; font-size: .88rem; letter-spacing: .04em; color: var(--text-on-dark-soft); }
.hero-meta::before { content: ""; display: inline-block; width: 2.2rem; height: 2px; background: var(--accent); vertical-align: middle; margin-right: .7rem; }
.doc-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.doc-list li { background: #fff; border: 1px solid var(--line-light); border-radius: 10px; padding: .9rem 1.1rem .9rem 2.9rem; position: relative; }
.doc-list li::before { content: ""; position: absolute; left: 1.1rem; top: 1.25rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }
.muted { color: var(--ink-soft); font-size: .92rem; }
.footer-credit { margin: .3rem 0 0; font-size: .78rem; color: rgba(184,194,212,.55); }

/* ---- Exact official logo on light chip (dark header/footer) ---- */
.brand-logo, .footer-logo {
  background: linear-gradient(180deg, #f7f8fa 0%, #d7dbe1 100%);
  border-radius: 12px;
  padding: 6px 12px;
  height: auto;
  object-fit: contain;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.footer-logo { margin-bottom: 12px; }
.admin-brand-logo {
  background: linear-gradient(180deg, #f7f8fa 0%, #d7dbe1 100%);
  border-radius: 8px;
  padding: 3px 8px;
  height: 32px;
  width: auto;
  vertical-align: middle;
  margin-right: 8px;
}

/* ---- Homepage vehicle showcase ---- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.showcase-card {
  margin: 0; border-radius: 16px; overflow: hidden;
  background: #14171d; border: 1px solid rgba(255,255,255,.08);
}
.showcase-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.showcase-card figcaption { padding: 18px 20px 22px; }
.showcase-card h3 { margin: 0 0 6px; }
.showcase-card p { margin: 0; color: #aab1bb; }
@media (max-width: 720px) { .showcase { grid-template-columns: 1fr; } }

/* ---- Admin: social share preview mock ---- */
.share-preview {
  max-width: 500px; border: 1px solid #d0d2d6; border-radius: 10px;
  overflow: hidden; background: #fff; font-family: Helvetica, Arial, sans-serif;
}
.share-preview-img img { width: 100%; aspect-ratio: 1200/630; object-fit: cover; display: block; }
.share-preview-body { padding: 10px 12px 12px; background: #f0f2f5; display: flex; flex-direction: column; gap: 2px; }
.share-preview-host { font-size: 12px; color: #65676b; text-transform: uppercase; }
.share-preview-title { font-size: 15px; color: #050505; line-height: 1.3; }
.share-preview-desc { font-size: 13px; color: #65676b; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.admin-fieldset { border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 14px 16px; margin: 14px 0; }
.admin-fieldset legend { padding: 0 8px; font-weight: 600; }
.admin-steps li { margin-bottom: 8px; }
.showcase-card h3 { color: #f2f4f7; }
