/* Clydebank Cycles: one family look, three worlds
   Navy structure, orange accent, working-steel details, no nostalgia. */

:root {
  --navy: #14273f;
  --navy-deep: #0c1a2c;
  --navy-soft: #2a4166;
  --orange: #e9641f;
  --orange-text: #b8480c;   /* orange dark enough for text on light backgrounds */
  --orange-light: #f58a45;  /* orange light enough for text on navy */
  --paper: #f6f4ef;
  --paper-2: #ebe7dd;
  --steel: #cfd4dc;
  --ink: #1b2536;
  --ink-soft: #46536a;
  --white: #ffffff;
  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  --head: "Archivo", "Arial Black", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 0.5em;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.125rem; font-weight: 700; }

p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { padding-left: 1.25em; max-width: var(--measure); }
li { margin-bottom: 0.4em; }

a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange-text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--orange); color: var(--navy-deep);
  padding: 0.6rem 1rem; font-weight: 700; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---- Stencil labels and rivet edges ---- */

.stencil {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  border: 2px solid currentColor;
  padding: 0.25em 0.6em;
  line-height: 1.2;
  border-radius: 2px;
}
.stencil-orange { color: var(--orange-text); }
.stencil-onnavy { color: var(--orange-light); }

.rivets {
  position: relative;
}
.rivets::before, .rivets::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 12px;
  background: radial-gradient(circle at 6px 6px, var(--rivet, var(--navy)) 2px, transparent 2.6px) 0 0 / 24px 12px repeat-x;
  pointer-events: none;
}
.rivets::before { top: 6px; }
.rivets::after { bottom: 6px; }

.plate-top { border-top: 6px solid var(--navy); }
.plate-orange { border-top: 6px solid var(--orange); }

/* ---- Header ---- */

.site-head {
  background: var(--navy);
  color: var(--white);
  --rivet: var(--navy-soft);
}
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  padding: 1.1rem 0;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--white);
  font-family: var(--head); font-weight: 900; font-size: 1.3rem;
  letter-spacing: -0.01em; text-transform: uppercase; line-height: 1;
}
.wordmark:hover { color: var(--orange-light); }
.wordmark svg { width: 34px; height: 34px; flex: none; }
.wordmark small {
  display: block; font-family: var(--body); font-weight: 500; font-size: 0.7rem;
  letter-spacing: 0.12em; color: var(--steel); margin-top: 0.3em;
}

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.4rem; max-width: none;
}
.site-nav li { margin: 0; }
.site-nav a, .site-nav span {
  display: inline-block; padding: 0.45rem 0.7rem;
  font-family: var(--head); font-weight: 700; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--white); text-decoration: none; border-bottom: 3px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--orange); color: var(--white); }
.site-nav span { color: var(--steel); }
.site-nav span::after { content: " ·"; opacity: 0; }
.site-nav .nav-soon { font-size: 0.6rem; letter-spacing: 0.1em; vertical-align: middle; opacity: 0.8; }

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

.hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  --rivet: var(--navy-soft);
}
.hero h1 { color: var(--white); max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--orange-light); }
.hero p { color: var(--steel); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 48ch; }
.hero .stencil { margin-bottom: 1.25rem; }

/* ---- Three doors ---- */

.doors {
  background: var(--navy);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.doors-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.door {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border-top: 8px solid var(--orange);
  min-height: 100%;
  transition: transform 120ms ease;
}
.door:hover { transform: translateY(-3px); color: var(--ink); }
.door h2 { margin: 0.25rem 0 0; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.door p { margin: 0; color: var(--ink-soft); }
.door .door-go {
  margin-top: auto; padding-top: 0.75rem;
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.85rem; color: var(--navy);
}
.door-go::after { content: " \2192"; }
.door-urban { --door: var(--orange); }
.door-gravel { background: var(--navy-deep); color: var(--white); border-top-color: var(--orange); }
.door-gravel h2 { color: var(--white); }
.door-gravel p { color: var(--steel); }
.door-gravel .door-go { color: var(--orange-light); }
.door-gravel .stencil { color: var(--orange-light); }
.door-adaptive { background: var(--white); border-top-color: var(--navy); }
.door-adaptive .door-go { color: var(--navy); }
.door-static { cursor: default; }
.door-static:hover { transform: none; }
.door-static .door-go::after { content: ""; }

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

.section { padding: clamp(2.5rem, 6vw, 5.5rem) 0; }
.section-alt { background: var(--paper-2); }
.section-navy { background: var(--navy); color: var(--white); --rivet: var(--navy-soft); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: var(--steel); }
.section-navy a { color: var(--white); }
.section-navy a:hover { color: var(--orange-light); }
.section-white { background: var(--white); }

.kicker { display: inline-block; margin-bottom: 1rem; }
.kicker + h1, .kicker + h2 { clear: both; }

.split {
  display: grid; gap: 2rem clamp(2rem, 5vw, 5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: start;
}
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); }

.founding-line {
  font-family: var(--head); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.3; color: var(--navy); border-left: 6px solid var(--orange);
  padding-left: 1rem; margin: 1.5rem 0; max-width: 34ch;
}
.section-navy .founding-line { color: var(--white); }

/* ---- Photo frames (photography placeholders) ---- */

.photo {
  position: relative;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(20, 39, 63, 0.07) 14px 15px),
    var(--paper-2);
  border: 2px dashed var(--navy-soft);
  color: var(--navy);
  font-family: var(--head); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase; text-align: center;
  padding: 1rem; min-height: 120px;
  overflow: hidden;
}
.photo span { display: block; max-width: 24ch; }
.photo small { display: block; font-family: var(--body); font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-soft); margin-top: 0.4em; font-size: 0.8rem; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.section-navy .photo { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.06) 14px 15px), var(--navy-deep); border-color: var(--steel); color: var(--steel); }
.section-navy .photo small { color: var(--steel); }

.photo-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

/* ---- Cards ---- */

.cards {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  list-style: none; padding: 0; margin: 0; max-width: none;
}
.cards > li { margin: 0; }
.card {
  background: var(--white);
  border: 1px solid var(--steel);
  border-top: 5px solid var(--navy);
  padding: 1.25rem;
  height: 100%;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.card h3 { margin: 0; font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card .price { font-family: var(--head); font-weight: 900; font-size: 1.5rem; color: var(--navy); margin-top: auto; }
.card .price small { font-family: var(--body); font-weight: 500; font-size: 0.85rem; color: var(--ink-soft); }
.card .photo { min-height: 0; }
.card-orange { border-top-color: var(--orange); }

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

.btn {
  display: inline-block;
  font-family: var(--head); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.85rem 1.4rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  line-height: 1.2;
}
.btn-orange { background: var(--orange); color: var(--navy-deep); border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-light); border-color: var(--orange-light); color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.section-navy .btn-ghost { color: var(--white); border-color: var(--white); }
.section-navy .btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* ---- Trust strip ---- */

.trust {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  list-style: none; padding: 0; margin: 0; max-width: none;
}
.trust li {
  margin: 0; padding: 1rem 1.25rem;
  border-left: 4px solid var(--orange);
  background: var(--white);
}
.trust strong { display: block; font-family: var(--head); font-size: 1.1rem; color: var(--navy); }
.trust span { color: var(--ink-soft); font-size: 0.95rem; }

/* ---- Tables (servicing menu) ---- */

.menu { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: var(--white); }
.menu th, .menu td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--steel); vertical-align: top; }
.menu th { font-family: var(--head); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy); background: var(--paper-2); }
.menu td:first-child { font-weight: 600; color: var(--navy); }
.menu .price { font-family: var(--head); font-weight: 900; font-size: 1.15rem; color: var(--navy); white-space: nowrap; }
.menu-wrap { overflow-x: auto; }
@media (max-width: 560px) {
  .menu thead { position: absolute; left: -9999px; }
  .menu tr { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--steel); }
  .menu td { display: block; padding: 0.15rem 1rem; border: 0; }
  .menu td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink-soft); }
  .menu td:first-child::before { content: ""; }
  .menu td:first-child { font-size: 1.1rem; }
}

/* ---- Visit block ---- */

.visit-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.addr { font-style: normal; }
.addr strong { font-family: var(--head); font-size: 1.2rem; color: var(--navy); display: block; }
.hours { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--steel); padding: 0.4rem 0; max-width: 32ch; }
.map { min-height: 260px; }

/* ---- Forms ---- */

.form { display: grid; gap: 1rem; max-width: 640px; }
.form label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; padding: 0.75rem 0.85rem;
  border: 2px solid var(--navy-soft); border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .hint { font-size: 0.9rem; color: var(--ink-soft); margin: 0.25rem 0 0; }
.form-inline { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; max-width: 640px; }
.form-inline > div { flex: 1 1 260px; }
.form-inline label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.form-inline input { width: 100%; font: inherit; padding: 0.8rem 0.85rem; border: 2px solid var(--navy-soft); border-radius: var(--radius); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; color: var(--navy); padding: 0; margin-bottom: 0.4rem; }
.choices { display: grid; gap: 0.4rem; }
.choices label { display: flex; gap: 0.6rem; align-items: start; font-weight: 500; margin: 0; }
.choices input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; flex: none; }

/* ---- Steps ---- */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; max-width: none;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { counter-increment: step; margin: 0; background: var(--white); border: 1px solid var(--steel); padding: 1.25rem 1.25rem 1.25rem 1.25rem; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--head); font-weight: 900; font-size: 2rem; color: var(--orange-text); line-height: 1; margin-bottom: 0.5rem;
}
.steps h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---- Notes and placeholders ---- */

.note {
  border: 1px solid var(--steel); border-left: 5px solid var(--navy);
  background: var(--white); padding: 1rem 1.25rem; max-width: var(--measure);
}
.note p:last-child { margin-bottom: 0; }
.placeholder { color: var(--ink-soft); font-style: italic; }

/* ---- Page banners (inner pages) ---- */

.banner {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.banner h1 { max-width: 18ch; }
.banner p { font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
.banner-urban { background: var(--navy); color: var(--white); --rivet: var(--navy-soft); }
.banner-urban h1 { color: var(--white); }
.banner-urban h1 em { font-style: normal; color: var(--orange-light); }
.banner-urban p { color: var(--steel); }

/* World jump bar */
.jump { background: var(--paper-2); border-bottom: 1px solid var(--steel); }
.jump ul { list-style: none; margin: 0; padding: 0.5rem 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; max-width: none; }
.jump li { margin: 0; }
.jump a { display: inline-block; padding: 0.4rem 0.6rem; font-family: var(--head); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; }
.jump a:hover { text-decoration: underline; }

/* ---- Adaptive world: calmer, softer, larger, higher contrast ---- */

.world-adaptive {
  --paper: #faf8f3;
  --paper-2: #f0ece3;
  --ink: #16202e;
  --ink-soft: #3e4a5c;
  --navy-soft: #35507a;
  --measure: 58ch;
  font-size: 1.125rem;
  line-height: 1.7;
}
.world-adaptive h1, .world-adaptive h2, .world-adaptive h3 { letter-spacing: 0; }
.world-adaptive h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.banner-adaptive {
  background: var(--white);
  border-bottom: 1px solid var(--steel);
}
.banner-adaptive h1 { max-width: 20ch; }
.banner-adaptive h1 em { font-style: normal; color: var(--orange-text); }
.world-adaptive .door-go, .world-adaptive .steps li::before { color: var(--navy); }
.world-adaptive .card { border-top-color: var(--navy-soft); }
.world-adaptive .rivets::before, .world-adaptive .rivets::after { opacity: 0.55; }
.world-adaptive .stencil { font-size: 0.8rem; letter-spacing: 0.1em; }
.plain-answer {
  background: var(--white); border: 2px solid var(--navy);
  padding: clamp(1.25rem, 3vw, 2rem); max-width: 720px;
}
.plain-answer p:first-of-type { font-family: var(--head); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.3; color: var(--navy); }
.plain-answer p:last-child { margin-bottom: 0; }
.who-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; max-width: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.who-list li { margin: 0; padding: 0.9rem 1rem; background: var(--paper-2); border-left: 4px solid var(--navy-soft); }

.story { background: var(--white); border: 1px solid var(--steel); padding: 1.25rem; height: 100%; display: flex; flex-direction: column; gap: 0.75rem; }
.story .photo { min-height: 0; }
.story blockquote { margin: 0; font-size: 1.05rem; color: var(--ink); }
.story cite { font-style: normal; font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.story .story-meta { font-size: 0.85rem; color: var(--ink-soft); margin-top: auto; }
.consent { background: var(--paper-2); border-left: 5px solid var(--orange); padding: 1rem 1.25rem; max-width: var(--measure); }
.consent p:last-child { margin-bottom: 0; }

.two-col { columns: 2; column-gap: 2.5rem; max-width: none; }
.two-col li { break-inside: avoid; }
@media (max-width: 640px) { .two-col { columns: 1; } }

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

.site-foot {
  background: var(--navy-deep); color: var(--steel);
  padding: 2.5rem 0 2rem; font-size: 0.95rem; --rivet: var(--navy-soft);
}
.site-foot .wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.site-foot h4 { color: var(--white); font-family: var(--head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.6rem; }
.site-foot p { margin: 0 0 0.5em; }
.site-foot a { color: var(--white); }
.site-foot a:hover { color: var(--orange-light); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--navy-soft); padding-top: 1rem; font-size: 0.85rem; }

/* ---- Utilities ---- */

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.divider { height: 6px; background: repeating-linear-gradient(90deg, var(--navy) 0 40px, var(--orange) 40px 52px); border: 0; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .door { transition: none; }
}

/* ---- Bench photographs: added AFTER the build, identically on every site. ----
   Each picture fills the frame the design drew, cropped from the centre; the frame keeps
   the size the design gave it (its label is hidden, not removed). */
[data-bench-frame="static"] { position: relative; }
[data-bench-frame] { isolation: isolate; overflow: hidden; }
[data-bench-frame] > .bench-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; z-index: -1; margin: 0; border: 0; }
[data-bench-frame]:not([data-bench-over]) .bench-label { visibility: hidden; }
[data-bench-frame][data-bench-frame]:not([data-bench-over])::before,
[data-bench-frame][data-bench-frame]:not([data-bench-over])::after { visibility: hidden; }  /* hidden, not removed: some designs size the frame with a pseudo-element */
[data-bench-over] .bench-label { display: none; }
[data-bench-over] > .bench-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--bench-scrim) 0%, color-mix(in srgb, var(--bench-scrim) 88%, transparent) 42%, color-mix(in srgb, var(--bench-scrim) 35%, transparent) 72%, transparent 100%); }
@media (max-width: 700px) { [data-bench-over] > .bench-scrim { background: color-mix(in srgb, var(--bench-scrim) 82%, transparent); } }
