/* ==========================================================================
   AutoMetal — Design system + site styles
   Industrial / trustworthy / operational. No frameworks, no build step.
   ========================================================================== */

/* ---- Fonts -------------------------------------------------------------
   Archivo (display, 700/900) + Public Sans (body, 400/500/600/700).
   Loaded via <link> in <head> (see partials). Self-hosting these same
   two families is a documented future hardening step — see
   /README-DEPLOYMENT.md — to avoid the Google Fonts CDN request entirely.
   -------------------------------------------------------------------------- */

:root {
  /* Warm, physical neutrals — not clinical SaaS white/black */
  --ink: #1a1511;
  --charcoal: #2b2621;
  --steel-700: #4a453e;
  --steel-500: #655e53; /* darkened from initial draft for a safer margin above the 4.5:1 body-text floor */
  --steel-300: #a89f92;
  --steel-150: #d9d1c3;
  --paper: #f3efe6;
  --paper-raised: #eae2d2;
  --paper-deep: #e2d8c4;
  --white: #fffdf9;

  /* Single restrained accent — oxidized metal / burnt rust. Never green. */
  --rust: #b04a1f;
  --rust-dark: #8a3814;
  --rust-tint: #f0ddc9;

  /* Semantic */
  --bg: var(--paper);
  --bg-raised: var(--paper-raised);
  --bg-deep: var(--paper-deep);
  --surface: var(--white);
  --text: var(--ink);
  --text-muted: var(--steel-500);
  --text-on-dark: var(--paper);
  --border: var(--steel-150);
  --border-strong: var(--steel-300);
  --accent: var(--rust);
  --accent-dark: var(--rust-dark);
  --accent-tint: var(--rust-tint);
  --focus: var(--ink);
  --danger: #9a2b18;
  --danger-bg: #f3ddd4;
  --success: #2f5a34;
  --success-bg: #dfe8d8;

  /* Type */
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  /* Space scale (4px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  --radius: 3px;
  --measure: 64ch;
  --container: 74rem;

  --shadow-1: 0 1px 2px rgba(26, 21, 17, 0.08), 0 1px 1px rgba(26, 21, 17, 0.04);
  --shadow-2: 0 8px 24px -8px rgba(26, 21, 17, 0.28), 0 2px 6px rgba(26, 21, 17, 0.08);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset --------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; text-wrap: balance; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Selection, caret, focus — the details a built page carries and an
   assembled one skips */
::selection { background: var(--ink); color: var(--paper); }
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 8px var(--focus);
  border-radius: 1px;
}

/* ---- Layout helpers -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
@media (min-width: 48rem) { .wrap { padding-inline: var(--sp-7); } }

.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-7); }
.section--raised { background: var(--bg-raised); }
.section--deep { background: var(--bg-deep); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }

.stack > * + * { margin-top: var(--sp-5); }
.stack-sm > * + * { margin-top: var(--sp-3); }
.stack-lg > * + * { margin-top: var(--sp-7); }

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

.skip-link {
  position: absolute; left: var(--sp-4); top: -3rem;
  background: var(--ink); color: var(--paper);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--radius);
  z-index: 100; transition: top 0.15s var(--ease-out-expo);
}
.skip-link:focus { top: var(--sp-4); }

/* ---- Type ----------------------------------------------------------- */
.eyebrow-none { /* intentionally absent by design — no kickers/eyebrows */ }

h1, .h1 {
  font-weight: 900;
  font-size: clamp(2.1rem, 1.35rem + 3.6vw, 4.2rem);
  letter-spacing: -0.01em;
}
h2, .h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.55rem);
  letter-spacing: -0.005em;
}
h3, .h3 {
  font-weight: 700;
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
}
.lede {
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem);
  color: var(--text-muted);
  max-width: var(--measure);
}
p { max-width: var(--measure); }
p + p { margin-top: var(--sp-4); }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.875rem; }
.no-measure { max-width: none; }

/* ---- Buttons ---------------------------------------------------------
   Signature detail: primary CTAs carry one clipped corner — a cut-plate
   motif, consistently applied, never decorative-only. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.95rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.005em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.15s var(--ease-out-expo), background-color 0.15s, border-color 0.15s;
  min-height: 3rem;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.btn--primary:hover { background: var(--accent-dark); }

.btn--dark {
  background: var(--ink);
  color: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.btn--dark:hover { background: var(--charcoal); }

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--paper); }

.btn--block { width: 100%; justify-content: center; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---- Header / nav ------------------------------------------------------*/
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--sp-4);
  gap: var(--sp-5);
}
.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: var(--sp-6); align-items: center; }
.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding-block: var(--sp-1);
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding-block: var(--sp-4);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--sp-1); }
.mobile-nav a {
  display: block; padding: var(--sp-3) var(--sp-1);
  text-decoration: none; font-weight: 600; font-size: 1.05rem; color: var(--text);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 64rem) {
  .primary-nav { display: block; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* ---- Hero ---------------------------------------------------------- */
.hero {
  padding-block: var(--sp-8) var(--sp-9);
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 60%, var(--paper-raised) 100%);
  position: relative;
  overflow: hidden;
}
/* IMAGE SLOT: when real AutoMetal yard/vehicle photography is supplied,
   this brushed-steel texture band can be replaced with a photograph —
   swap the background rule on .hero__texture for a background-image,
   keep the ink gradient overlay beneath the headline for contrast. */
.hero__texture {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background:
    repeating-linear-gradient(115deg, var(--steel-150) 0px, var(--steel-150) 2px, transparent 2px, transparent 42px),
    repeating-linear-gradient(115deg, var(--paper-deep) 0px, var(--paper-deep) 1px, transparent 1px, transparent 14px);
  mask-image: linear-gradient(180deg, black, transparent 85%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__kicker {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 44ch;
}
.hero h1 { margin-top: var(--sp-3); max-width: 16ch; }

.hero__choice {
  margin-top: var(--sp-7);
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 40rem) {
  .hero__choice { grid-template-columns: 1fr 1fr; }
}

.choice-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: var(--sp-6) var(--sp-5);
  transition: border-color 0.15s, transform 0.15s var(--ease-out-expo), box-shadow 0.15s;
  position: relative;
}
.choice-card:hover, .choice-card:focus-visible {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.choice-card__icon {
  width: 2.75rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent-dark);
  border-radius: var(--radius);
  margin-bottom: var(--sp-4);
}
.choice-card__icon svg { width: 1.5rem; height: 1.5rem; }
.choice-card h2 { font-size: 1.5rem; margin-bottom: var(--sp-2); }
.choice-card p { color: var(--text-muted); font-size: 0.98rem; }
.choice-card__go {
  margin-top: var(--sp-4);
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--accent-dark);
}
.choice-card__go svg { width: 1.1em; height: 1.1em; transition: transform 0.15s var(--ease-out-expo); }
.choice-card:hover .choice-card__go svg { transform: translateX(3px); }

/* ---- Proof band ------------------------------------------------------*/
.proof-band {
  padding-block: var(--sp-7);
  background: var(--ink);
  color: var(--text-on-dark);
}
.proof-band__row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-4) var(--sp-6);
}
.proof-band__figure {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.4rem);
  color: var(--paper);
  white-space: nowrap;
}
.proof-band__figure span { color: var(--accent); }
.proof-band__text { color: var(--steel-150); max-width: 46ch; font-size: 1.02rem; }

/* ---- Numbered steps --------------------------------------------------*/
.steps {
  display: grid; gap: var(--sp-6);
  counter-reset: step;
  margin-top: var(--sp-7);
}
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; }
.step__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--accent);
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-top: var(--sp-2); }
.step p { margin-top: var(--sp-2); color: var(--text-muted); font-size: 0.96rem; }

/* ---- Plain content lists (no card grid) ------------------------------*/
.plain-list {
  display: grid; gap: var(--sp-2) var(--sp-6);
  margin-top: var(--sp-6);
}
@media (min-width: 40rem) { .plain-list { grid-template-columns: 1fr 1fr; } }
.plain-list li {
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--border);
  display: flex; gap: var(--sp-3); align-items: baseline;
  font-size: 1.02rem;
}
.plain-list li svg { width: 1.1em; height: 1.1em; flex: none; color: var(--accent-dark); transform: translateY(2px); }

.two-col {
  display: grid; gap: var(--sp-7);
  margin-top: var(--sp-6);
}
@media (min-width: 56rem) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col h3 { margin-bottom: var(--sp-3); }

/* ---- Footer ------------------------------------------------------------*/
.site-footer {
  background: var(--charcoal);
  color: var(--steel-150);
  padding-block: var(--sp-8) var(--sp-6);
}
.footer-grid {
  display: grid; gap: var(--sp-6);
}
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h4 {
  font-family: var(--font-display); color: var(--paper); font-size: 1rem;
  margin-bottom: var(--sp-3);
}
.site-footer a { color: var(--steel-150); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.site-footer .logo { color: var(--paper); }
.site-footer ul li + li { margin-top: var(--sp-2); }
.footer-bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(243,239,230,0.15);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6);
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--steel-300);
}
.footer-invoice { font-size: 0.85rem; color: var(--steel-300); }

/* ---- Forms -------------------------------------------------------------*/
.form-page-hero {
  padding-block: var(--sp-8) var(--sp-6);
  background: var(--bg-raised);
}

.form-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6) var(--sp-5);
}
@media (min-width: 40rem) { .form-shell { padding: var(--sp-7); } }

.field { margin-block: var(--sp-5); }
.field:first-child { margin-top: 0; }
.field label, .field legend {
  display: block; font-weight: 700; margin-bottom: var(--sp-2);
  font-size: 0.98rem;
}
.field .hint { color: var(--text-muted); font-size: 0.875rem; margin-bottom: var(--sp-2); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:invalid[data-touched="true"] { border-color: var(--danger); }

.field-error {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: var(--sp-2);
  display: none;
}
.field-error.is-visible { display: block; }

.radio-group, .check-group {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
}
.choice-pill {
  position: relative;
}
.choice-pill input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.choice-pill span {
  display: inline-flex; align-items: center;
  padding: 0.65rem 1.1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600;
  background: var(--white);
}
.choice-pill input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.choice-pill input:focus-visible + span {
  outline: 3px solid var(--focus); outline-offset: 2px;
}

fieldset { border: 0; padding: 0; }

/* Plate lookup */
.plate-input-row {
  display: flex; gap: var(--sp-3); flex-wrap: wrap;
}
.plate-input {
  flex: 1 1 12rem;
  min-width: 0; /* flex items default to min-width:auto, which floors a
                   text input at its native intrinsic size and defeats
                   wrapping/shrinking on narrow viewports */
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.9rem 1rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: #f7d334; /* Danish plate yellow — recognisable affordance, used once, functionally */
  color: var(--ink);
}
.plate-input::placeholder { color: rgba(26,21,17,0.4); letter-spacing: 0.12em; }

.lookup-status {
  margin-top: var(--sp-4);
  font-size: 0.95rem;
  color: var(--text-muted);
  display: none;
  align-items: center; gap: var(--sp-2);
}
.lookup-status.is-visible { display: flex; }
.spinner {
  width: 1.1rem; height: 1.1rem;
  border: 2px solid var(--border-strong);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.vehicle-result {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: none;
}
.vehicle-result.is-visible { display: block; }
.vehicle-result__vehicle { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.vehicle-result__meta { margin-top: var(--sp-1); color: var(--text-muted); font-size: 0.95rem; }
.vehicle-result__plate { margin-top: var(--sp-3); font-size: 0.9rem; }
.vehicle-result__title { margin-top: var(--sp-4); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.vehicle-result__actions { margin-top: var(--sp-5); display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.lookup-fallback {
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}
.lookup-fallback.is-visible { display: block; }

/* Upload widget */
.upload-field {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: var(--sp-5);
  text-align: center;
  background: var(--bg-raised);
}
.upload-field__btn { margin-top: var(--sp-3); }
.upload-field input[type="file"] { display: none; }
.upload-previews {
  margin-top: var(--sp-4);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: var(--sp-2);
}
.upload-previews img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--border-strong);
}
.upload-preview-item { position: relative; }
.upload-preview-remove {
  position: absolute; top: -0.4rem; right: -0.4rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; line-height: 1;
}

/* Honeypot — hidden from real users, present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.85rem; color: var(--text-muted); margin-top: var(--sp-2);
}

.alert {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}
.alert.is-visible { display: block; }
.alert--error { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger); }
.alert--success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success); }

.confirmation {
  text-align: left;
  padding: var(--sp-6);
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.confirmation__ref {
  display: inline-block;
  font-family: var(--font-display); font-weight: 900; font-size: 1.4rem;
  background: var(--ink); color: var(--paper);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius);
  margin-block: var(--sp-3);
  letter-spacing: 0.02em;
}

/* form step transitions — the single authored moment, not scattered */
.form-step { display: none; }
.form-step.is-active {
  display: block;
  animation: rise 0.4s var(--ease-out-expo);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .form-step.is-active { animation: none; }
}

.progress-trail {
  display: flex; gap: var(--sp-2); margin-bottom: var(--sp-6);
}
.progress-trail span {
  height: 4px; flex: 1; background: var(--border-strong); border-radius: 2px;
}
.progress-trail span.is-done { background: var(--accent); }

/* ---- Simple content page (About / Privacy) ---------------------------*/
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--sp-7); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-top: var(--sp-4); }
.prose ul, .prose ol { padding-left: 1.25em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: var(--sp-2); }
.prose a { color: var(--accent-dark); text-decoration-thickness: 1.5px; }

.contact-emails {
  margin-top: var(--sp-6);
  display: grid; gap: var(--sp-4);
}
@media (min-width: 40rem) { .contact-emails { grid-template-columns: 1fr 1fr; } }
.contact-card {
  padding: var(--sp-5);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.contact-card h3 { font-size: 1.1rem; }
.contact-card a {
  display: inline-block; margin-top: var(--sp-2);
  font-weight: 700; color: var(--accent-dark); text-decoration: none;
  font-size: 1.05rem;
}
.contact-card a:hover { text-decoration: underline; }
.contact-card p { color: var(--text-muted); font-size: 0.92rem; margin-top: var(--sp-1); }

@media (min-width: 30rem) { .contact-emails.contact-emails--four { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .contact-emails.contact-emails--four { grid-template-columns: repeat(4, 1fr); } }

/* ---- Photo feature (authentic operational photography) ---------------
   Real AutoMetal photos, not stock. Deliberately restrained: no overlay
   text, no card chrome — a plain photograph with a short factual
   caption, cropped as little as possible from the original. */
.photo-feature-section { padding-block: var(--sp-8); }
.photo-feature {
  max-width: 26rem;
  margin-inline: auto;
}
.photo-feature img {
  width: 100%;
  height: auto; /* the width/height HTML attributes (for CLS reservation)
                   would otherwise fix height in px and defeat aspect-ratio */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.photo-feature__caption {
  margin-top: var(--sp-3);
  font-size: 0.85rem;
  color: var(--text-muted);
}
@media (min-width: 56rem) {
  /* Asymmetric on wide screens: pinned to the text edge rather than
     centered, so it reads as a placed photograph, not a banner. */
  .photo-feature { margin-inline: 0; max-width: 22rem; }
}

/* ---- Form-page hero with photo (Skrotbiler only) -----------------------
   Photo is desktop-only: on narrower screens the plate-lookup task must
   stay the first thing after the heading, so the <picture> below is not
   just visually hidden but only fetches its real image via a matching
   <source media="(min-width: 64rem)"> — nothing meaningful downloads on
   phones/tablets. */
.form-page-hero__grid {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
.form-page-hero__photo { display: none; }
@media (min-width: 64rem) {
  .form-page-hero__grid { grid-template-columns: 1.3fr 1fr; }
  .form-page-hero__photo { display: block; }
  .form-page-hero__photo img {
    width: 100%;
    /* Capped height (not the 3/4 full-length crop used elsewhere): this
       hero sits directly above the plate-lookup task, so the photo is
       deliberately cropped a little tighter to keep the hero from
       growing taller than the text column and pushing the form down. */
    height: 20rem;
    object-fit: cover;
    border-radius: var(--radius);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  }
}
