/* Autosafe — main stylesheet
   Tokens: ink/paper/mist + the two brand colours from the wordmark (AUTO red, SAFE orange).
   Type: Archivo (variable width + weight). Wide cuts for display, normal width for reading. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1b2430;
  --ink-2: #4a5563;
  --ink-3: #6b7482;
  --paper: #ffffff;
  --mist: #f3f5f7;
  --line: #e2e6eb;
  --red: #d73236;
  --red-dark: #b3242a;
  --orange: #f08330;
  --ok: #1f7a4d;

  --wrap: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 6px;
  --radius-lg: 14px;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.4vw, 3.9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.12; font-weight: 700; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 68ch; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Display type: the wide cut of Archivo gives the "badge on a boot lid" feel. */
.display, .page-title, .section-title, .hero h1, .car-model, .detail-title {
  font-stretch: 118%;
  font-weight: 720;
  letter-spacing: -0.012em;
}
.section-title { font-size: var(--step-3); max-width: 22ch; }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; line-height: 1.55; }
.muted { color: var(--ink-3); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-wa { background: #1f7a4d; color: #fff; }
.btn-wa:hover { background: #16603c; color: #fff; }
.btn-small { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand img { width: 168px; height: auto; }
.stripe { height: 3px; background: linear-gradient(90deg, var(--red) 0 50%, var(--orange) 50% 100%); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.site-nav a:not(.btn) {
  display: block; padding: .5rem .6rem; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500;
}
.site-nav a:not(.btn):hover { background: var(--mist); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--red-dark); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav-toggle { display: none; }

@media (max-width: 1140px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .55rem; margin-left: auto;
    min-height: 44px; padding: .4rem .9rem; border: 1.5px solid var(--line); border-radius: 999px;
    background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .site-nav {
    display: none; position: absolute; inset: 79px 0 auto 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--line); max-height: calc(100vh - 79px); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) { padding: .8rem .25rem; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: .75rem; }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-mist { background: var(--mist); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.25rem; }
.section-head p { margin: 0; max-width: 52ch; color: var(--ink-2); }

/* Page header (inner pages) */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-title { font-size: var(--step-4); max-width: 18ch; margin-bottom: .35em; }
.crumbs { font-size: var(--step--1); color: var(--ink-3); margin-bottom: 1.25rem; padding-top: 1.25rem; }
.page-head .crumbs { padding-top: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.crumbs a { color: var(--ink-2); }

/* Hero */
.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: var(--step-4); margin-bottom: .4em; max-width: 14ch; }
.hero .lede { margin-bottom: 1.75rem; }
.hero-points { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; gap: .65rem; }
.hero-points li { position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .7em; width: 14px; height: 3px; background: linear-gradient(90deg, var(--red) 50%, var(--orange) 50%); }
.hero-figure { margin: 0; position: relative; }
.hero-figure img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--mist); }
.hero-figure figcaption { margin-top: .75rem; font-size: var(--step--1); color: var(--ink-3); }
.hero-figure figcaption a { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 4 / 3; object-position: 50% 62%; }
}

/* Car grid & cards */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 2.5rem 1.75rem; }
.car-card-link { display: block; color: inherit; text-decoration: none; }
.car-card-media { position: relative; border-radius: var(--radius); overflow: hidden; background: #e6eaee; aspect-ratio: 16 / 10; }
.car-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.car-card-media.is-portrait img { object-position: 50% 70%; }
.car-card-link:hover .car-card-media img { transform: scale(1.03); }
.car-card-body { padding-top: 1rem; }
.car-make { font-size: var(--step--1); color: var(--ink-3); margin: 0 0 .15rem; font-weight: 500; }
.car-model { font-size: 1.3rem; margin: 0 0 .2rem; }
.car-card-link:hover .car-model { color: var(--red-dark); }
.car-variant { color: var(--ink-2); font-size: .9375rem; margin: 0 0 .75rem; }
.car-facts { list-style: none; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.car-facts li { font-size: .8125rem; padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-2); }
.car-price { margin: 0; padding-top: .8rem; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.car-price strong { font-size: 1.2rem; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.car-price span { color: var(--ink-3); font-size: .875rem; }
.tag { position: absolute; left: .75rem; top: .75rem; background: #fff; color: var(--ink); font-size: .8125rem; font-weight: 600; padding: .3rem .65rem; border-radius: 4px; }
.tag-order { background: var(--ink); color: #fff; }
.price-note { font-size: var(--step--1); color: var(--ink-3); margin-top: 2rem; max-width: 70ch; }

/* Route — the order process drawn as a road from the UK to Colombo */
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route-num {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink); font-weight: 700; font-stretch: 115%; position: relative; z-index: 1;
}
.route-stop h3 { font-size: 1.05rem; margin: .9rem 0 .35rem; font-stretch: 108%; }
.route-stop p { font-size: .9375rem; color: var(--ink-2); margin: 0; }
.route-horizontal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.route-horizontal::before {
  content: ""; position: absolute; left: 1.2rem; right: 50%; top: calc(1.2rem - 2px); height: 4px;
  background: repeating-linear-gradient(90deg, var(--red) 0 22px, transparent 22px 34px);
}
.route-horizontal::after {
  content: ""; position: absolute; left: 50%; right: calc((100% - 7.5rem) / 6 - 1.2rem); top: calc(1.2rem - 2px); height: 4px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 22px, transparent 22px 34px);
}
.route-horizontal .route-stop:last-child .route-num { background: var(--red); border-color: var(--red); color: #fff; }
.route + p { margin-top: 2.25rem; }
.route-ends { display: flex; justify-content: space-between; margin-bottom: 1.25rem; font-weight: 600; font-stretch: 112%; font-size: .9375rem; }
.route-ends span:last-child { color: var(--red-dark); }
@media (max-width: 980px) {
  .route-horizontal { grid-template-columns: 1fr; gap: 0; }
  .route-horizontal::before, .route-horizontal::after { display: none; }
  .route-ends { display: none; }
}
.route-vertical, .route-horizontal { counter-reset: none; }
.route-vertical .route-stop, .route-horizontal .route-stop { position: relative; }
@media (max-width: 980px) {
  .route-horizontal .route-stop, .route-vertical .route-stop { display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 1.1rem; padding-bottom: 1.6rem; }
  .route-horizontal .route-stop h3, .route-vertical .route-stop h3 { margin-top: .35rem; }
  .route-horizontal .route-stop p, .route-vertical .route-stop p { grid-column: 2; }
  .route-horizontal .route-stop:not(:last-child)::before, .route-vertical .route-stop:not(:last-child)::before {
    content: ""; position: absolute; left: calc(1.2rem - 2px); top: 2.4rem; bottom: 0; width: 4px;
    background: repeating-linear-gradient(180deg, var(--red) 0 16px, transparent 16px 26px);
  }
}
.route-vertical .route-stop { display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 1.25rem; padding-bottom: 2rem; }
.route-vertical .route-stop h3 { margin-top: .35rem; font-size: 1.2rem; }
.route-vertical .route-stop p { grid-column: 2; font-size: 1rem; }
.route-vertical .route-stop:not(:last-child)::before {
  content: ""; position: absolute; left: calc(1.2rem - 2px); top: 2.4rem; bottom: 0; width: 4px;
  background: repeating-linear-gradient(180deg, var(--red) 0 16px, transparent 16px 26px);
}
.route-vertical .route-stop:last-child .route-num { background: var(--red); border-color: var(--red); color: #fff; }

/* Split feature (why Autosafe) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split .display { font-size: var(--step-3); position: sticky; top: 110px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.facts-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 2rem; }
.facts-strip div { padding: 1.25rem 1rem 0 0; }
.facts-strip dt { font-weight: 700; font-stretch: 112%; font-size: 1.05rem; }
.facts-strip dd { margin: .2rem 0 0; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 640px) { .facts-strip { grid-template-columns: 1fr; } }

/* Handover photos */
.handovers { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: .6rem; }
.handovers .lb-item:nth-child(1), .handovers .lb-item:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.handovers img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--line); }
@media (max-width: 760px) { .handovers { grid-template-columns: repeat(2, 1fr); } }

.lb-item { display: block; cursor: zoom-in; }
.lb-item img { transition: opacity .2s ease; }
.lb-item:hover img { opacity: .88; }

/* Brands line */
.brands { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.brands li { font-stretch: 120%; font-weight: 650; font-size: 1.15rem; color: var(--ink-2); }

/* Contact band */
.contact-band { background: var(--ink); color: #fff; }
.contact-band a:not(.btn) { color: #fff; }
.contact-band .section-title { color: #fff; }
.contact-band .lede { color: #c9d0d9; }
.contact-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.75rem; }
.contact-cols h3 { font-size: .9375rem; color: #c9d0d9; font-weight: 500; margin-bottom: .4rem; }
.contact-cols p { font-size: 1.1rem; margin: 0; }
@media (max-width: 760px) { .contact-cols { grid-template-columns: 1fr; } }
.contact-band .btn-ghost { color: #fff; border-color: #fff; }
.contact-band .btn-ghost:hover { background: #fff; color: var(--ink); }

/* Detail page */
.detail { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-block: 1.5rem 3rem; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } }
.gallery-main { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.gallery-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-main.is-portrait img { aspect-ratio: 4 / 5; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; margin-top: .5rem; }
.gallery-thumbs img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; width: 100%; }
.detail-panel { position: sticky; top: 100px; }
@media (max-width: 960px) { .detail-panel { position: static; } }
.detail-make { color: var(--ink-3); font-weight: 500; margin: 0 0 .2rem; }
.detail-title { font-size: var(--step-3); margin-bottom: .25rem; }
.detail-variant { color: var(--ink-2); margin-bottom: 1.25rem; }
.detail-price { border-top: 3px solid var(--ink); padding-top: 1rem; margin-bottom: 1.25rem; }
.detail-price strong { display: block; font-size: var(--step-3); font-stretch: 112%; font-weight: 720; font-variant-numeric: tabular-nums; line-height: 1.1; }
.detail-price span { font-size: .9375rem; color: var(--ink-3); }
.spec-list { display: grid; grid-template-columns: auto 1fr; margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.spec-list dt, .spec-list dd { padding: .55rem 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .9375rem; }
.spec-list dt { color: var(--ink-3); padding-right: 1.25rem; }
.spec-list dd { font-weight: 500; }
.detail-actions { display: grid; gap: .6rem; }
.detail-actions .btn { width: 100%; }

.detail-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-bottom: 4rem; }
@media (max-width: 960px) { .detail-body { grid-template-columns: 1fr; } }
.detail-body h2 { font-size: var(--step-2); font-stretch: 112%; margin-top: 2.5rem; }
.detail-body h2:first-child { margin-top: 0; }
.feature-groups { columns: 2 260px; column-gap: 2.5rem; }
.feature-group { break-inside: avoid; margin-bottom: 1.5rem; }
.feature-group h3 { font-size: 1rem; margin-bottom: .5rem; }
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { position: relative; padding: .28rem 0 .28rem 1.4rem; font-size: .9375rem; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.tick-list li::before { content: ""; position: absolute; left: .1rem; top: .8em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* Landed-cost breakdown */
.costs { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); background: #fff; }
.costs-bar { width: 100%; height: 26px; display: block; margin: 1rem 0 .5rem; border-radius: 4px; overflow: hidden; }
.costs-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .8125rem; color: var(--ink-2); margin-bottom: 1rem; list-style: none; padding: 0; }
.costs-legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .4rem; vertical-align: -1px; }
.costs-legend .k-cif::before { background: var(--ink); }
.costs-legend .k-tax::before { background: var(--red); }
.costs-legend .k-fee::before { background: var(--orange); }
.costs table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.costs td { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.costs td:last-child { text-align: right; white-space: nowrap; }
.costs tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; font-size: 1.05rem; padding-top: .8rem; }
.costs small { color: var(--ink-3); }

/* Enquiry form */
.enquiry { background: var(--mist); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.enquiry-title { font-size: var(--step-2); font-stretch: 112%; }
.field { display: grid; gap: .3rem; margin-bottom: 1rem; }
.field span { font-weight: 600; font-size: .9375rem; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; width: 100%; padding: .7rem .8rem; color: var(--ink);
  background: #fff; border: 1.5px solid #cfd5dc; border-radius: var(--radius);
}
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(240,131,48,.35); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .8125rem; color: var(--ink-3); margin: .75rem 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: .8rem 1rem; border-radius: var(--radius); font-weight: 500; }
.notice-ok { background: #e6f4ec; color: var(--ok); }
.notice-error { background: #fdeceb; color: var(--red-dark); }

/* Prose pages */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); font-stretch: 112%; margin-top: 2.25rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.75rem; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: .5rem .75rem .5rem 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.quote { border-left: 4px solid var(--red); padding: .25rem 0 .25rem 1.25rem; margin: 1.5rem 0; font-size: 1.15rem; color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* FAQ */
.faq-group { margin-bottom: 3rem; }
.faq-group h2 { font-size: var(--step-2); font-stretch: 112%; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-weight: 600; font-size: 1.075rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.5rem; font-weight: 400; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.25rem; color: var(--ink-2); max-width: 68ch; }

/* Past customers */
.archive-list { display: grid; gap: 0; }
.archive-item { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); padding-block: 2.25rem; border-top: 1px solid var(--line); }
.archive-item:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .archive-item { grid-template-columns: 1fr; } }
.archive-cover img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.archive-item h3 { font-size: 1.35rem; font-stretch: 112%; margin-bottom: .3rem; }
.archive-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; padding: 0; list-style: none; }
.archive-meta li { font-size: .8125rem; padding: .2rem .55rem; border-radius: 4px; background: var(--mist); color: var(--ink-2); }
.archive-meta .delivered { background: var(--ink); color: #fff; }
.archive-price { font-weight: 600; margin-bottom: .75rem; }
.archive-price small { display: block; font-weight: 400; color: var(--ink-3); font-size: .875rem; }
.archive-item details { margin-top: 1rem; }
.archive-item summary { cursor: pointer; font-weight: 600; color: var(--red-dark); display: inline-block; padding: .35rem 0; }
.archive-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .45rem; margin: 1rem 0 1.25rem; }
.archive-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--mist); }
.chip-list { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.chip-list li { font-size: .8125rem; border: 1px solid var(--line); border-radius: 4px; padding: .2rem .5rem; color: var(--ink-2); }
.facts-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem 1.5rem; margin: 0 0 .5rem; }
.facts-dl div { border-left: 2px solid var(--line); padding-left: .7rem; }
.facts-dl dt { font-size: .8125rem; color: var(--ink-3); }
.facts-dl dd { margin: 0; font-weight: 500; font-size: .9375rem; }

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem 1rem; }
.wall figure { margin: 0; }
.wall img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--line); }
.wall figcaption { font-size: .875rem; color: var(--ink-2); margin-top: .45rem; line-height: 1.4; }

.filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.75rem; }
.filter button { font: inherit; font-size: .9375rem; padding: .45rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Gallery page */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--mist); }
.gallery-set { padding-block: 2rem; border-top: 1px solid var(--line); }
.gallery-set h3 { font-size: 1.2rem; font-stretch: 112%; }
.gallery-set h3 a { color: var(--ink); text-decoration: none; }
.gallery-set h3 a:hover { color: var(--red-dark); }

/* Press */
.press-links { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.press-links li { border-bottom: 1px solid var(--line); }
.press-links a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.press-links a span { color: var(--ink-3); font-weight: 400; }
.press-links a:hover { color: var(--red-dark); }
.scan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.scan-grid img { aspect-ratio: 1240 / 1754; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; width: 100%; background: var(--mist); }
@media (max-width: 640px) { .scan-grid { grid-template-columns: 1fr 1fr; } }

/* Contact page */
.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.contact-list li > span { color: var(--ink-3); }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius-lg); background: var(--mist); }

/* Footer */
.site-footer { background: var(--mist); padding-top: 3.5rem; margin-top: 0; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand img { width: 150px; margin-bottom: 1rem; }
.footer-brand p { color: var(--ink-2); max-width: 34ch; }
.footer-h { font-size: .9375rem; font-weight: 700; margin-bottom: .75rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; color: var(--ink-2); }
.site-footer a { color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-block: 1.25rem 5rem; color: var(--ink-3); font-size: .8125rem; }
.footer-base p { margin: 0; max-width: 80ch; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #1f7a4d; color: #fff; box-shadow: 0 6px 20px rgba(27,36,48,.25);
}
.wa-float:hover { background: #16603c; color: #fff; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,20,27,.94); display: grid; grid-template-columns: 4rem 1fr 4rem; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; grid-column: 2; display: grid; justify-items: center; gap: .75rem; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; border-radius: 4px; }
.lightbox figcaption { color: #dfe4ea; font-size: .9375rem; text-align: center; }
.lightbox button { background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; width: 3.5rem; height: 3.5rem; border-radius: 50%; }
.lightbox button:hover { background: rgba(255,255,255,.12); }
.lb-close { position: absolute; top: .75rem; right: .75rem; font-size: 2rem !important; }
.lb-prev { grid-column: 1; justify-self: center; }
.lb-next { grid-column: 3; justify-self: center; }
@media (max-width: 640px) { .lightbox { grid-template-columns: 2.75rem 1fr 2.75rem; } }

/* 404 */
.not-found { padding-block: 5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .wa-float, .enquiry, .detail-actions { display: none !important; }
}
.is-missing { display: none !important; }
.gallery-thumbs a[aria-current="true"] img { outline: 2px solid var(--red); outline-offset: 2px; }
.about-card { margin-top: 1.25rem; }
.about-card p { margin-bottom: .4rem; }

/* Respect the HTML "hidden" attribute even on elements that set their own display (fixes the Past customers filter). */
[hidden] { display: none !important; }

/* ---------------------------------------------------------------
   Handover slideshow ("Handing over the keys")
   Auto-advances every --ss-interval. The timing comes from the progress bar's own
   animation (JS moves on when it ends), so changing the number below is all that's needed.
   --------------------------------------------------------------- */
.handover {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: "show ." "show head" "show actions" "show ."; column-gap: clamp(2rem, 5vw, 4.5rem);
}
.handover .ss { grid-area: show; }
.handover-copy { grid-area: head; margin-bottom: 1.5rem; }
.handover-copy .section-title { margin-bottom: .4em; }
.handover-copy p:last-child { margin-bottom: 0; }
.handover-actions { grid-area: actions; }
@media (max-width: 860px) {
  .handover { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "head" "show" "actions"; row-gap: 1.5rem; }
  .handover-copy { margin-bottom: 0; }
}

.ss { --ss-interval: 3s; --ss-review-interval: 5s; --ss-fade: .7s; }
.ss-stage {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #e6eaee;
  border-radius: var(--radius-lg); box-shadow: 0 22px 44px -26px rgba(27, 36, 48, .45);
  touch-action: pan-y;
}
.ss-slide { position: absolute; inset: 0; margin: 0; z-index: 1; opacity: 0; visibility: hidden; transition: opacity 0s linear var(--ss-fade), visibility 0s linear var(--ss-fade); }
.ss-slide.is-active { z-index: 2; opacity: 1; visibility: visible; transition: opacity var(--ss-fade) ease, visibility 0s; }
.ss-slide a { display: block; width: 100%; height: 100%; }
.ss-slide img { width: 100%; height: 100%; object-fit: cover; }

/* Smaller frame for slideshows built from small originals (keeps them from looking soft). */
.ss-compact { width: 100%; max-width: 420px; margin-inline: auto; }

/* Controls only appear once the script is running (without it, the first photo simply shows). */
.ss-arrow, .ss-controls { display: none; }
.ss.is-ready .ss-arrow { display: grid; }
.ss.is-ready .ss-controls { display: flex; }

.ss-arrow {
  position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; padding: 0;
  place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 2px 12px rgba(27, 36, 48, .25);
  transition: background-color .15s ease, color .15s ease;
}
.ss-arrow:hover { background: var(--red); color: #fff; }
.ss-prev { left: .75rem; }
.ss-next { right: .75rem; }

.ss-controls { align-items: center; gap: .85rem; margin-top: .9rem; }
.ss-segs { display: flex; flex: 1; gap: 6px; min-width: 0; }
.ss-seg { flex: 1; min-width: 0; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.ss-track { display: block; width: 100%; height: 4px; border-radius: 2px; background: #d3d9e0; overflow: hidden; transition: height .15s ease; }
.ss-seg:hover .ss-track { height: 6px; }
.ss-fill { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--red), var(--orange)); }
.ss-seg.is-done .ss-fill { transform: scaleX(1); }
.ss-seg.is-active .ss-fill { animation: ss-fill var(--ss-interval) linear forwards; }
.ss-seg.has-review.is-active .ss-fill { animation-duration: var(--ss-review-interval); }
.ss.is-paused .ss-fill { animation-play-state: paused; }
@keyframes ss-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ss-count { min-width: 3.4em; text-align: right; font-size: .875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ss-toggle {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink);
  transition: background-color .15s ease, color .15s ease;
}
.ss-toggle:hover { background: var(--ink); color: #fff; }
.ss-toggle .i-play { display: none; }
.ss.is-user-paused .ss-toggle .i-play { display: block; }
.ss.is-user-paused .ss-toggle .i-pause { display: none; }

@media (max-width: 560px) {
  .ss-arrow { width: 40px; height: 40px; margin-top: -20px; }
  .ss-count { display: none; }
  .ss-controls { gap: .6rem; }
}

/* Customer review shown on top of a slideshow photo. Clicks pass through to the photo (opens it larger). */
.ss-review {
  position: absolute; z-index: 2; left: .85rem; right: .85rem; top: .85rem; pointer-events: none;
  padding: .85rem 1.1rem .9rem 1.35rem; border-radius: 12px; background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px -12px rgba(27, 36, 48, .45);
}
.ss-review::before { content: ""; position: absolute; left: .6rem; top: .8rem; bottom: .8rem; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--red), var(--orange)); }
.ss-review-label { display: block; margin-bottom: .2rem; font-size: .6875rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--red-dark); }
.ss-review blockquote { margin: 0; quotes: "\201C" "\201D"; }
.ss-review p { margin: 0; font-size: 1.0625rem; line-height: 1.4; font-weight: 550; color: var(--ink); }
.ss-review p::before { content: open-quote; }
.ss-review p::after { content: close-quote; }
.ss-review cite { display: block; margin-top: .35rem; font-size: .875rem; font-style: normal; color: var(--ink-3); }
@media (max-width: 560px) {
  .ss-review { left: .6rem; right: .6rem; top: .6rem; padding: .6rem .8rem .65rem 1.1rem; }
  .ss-review::before { left: .45rem; top: .65rem; bottom: .65rem; }
  .ss-review-label { display: none; }
  .ss-review p { font-size: .875rem; line-height: 1.35; }
}

/* Reduced motion: no auto-advance (the global rule above switches animations off). Show state statically instead. */
@media (prefers-reduced-motion: reduce) {
  .ss-seg.is-active .ss-fill { transform: scaleX(1); }
  .ss-toggle { display: none; }
}
