/* RL Investments Ltd — site stylesheet
   Layout: black brand band (header + page heading) over a white working page;
   content in a 72rem column, two-column splits that stack below 760px.
   Brand: black + red (R237 G28 B36), Arial family per the Visual Identity Manual. */

:root {
  --band: #141213;          /* brand black band */
  --on-band: #ffffff;
  --on-band-muted: #b9b2b3;
  --paper: #ffffff;
  --mist: #f5f3f3;          /* neutral with a faint red bias */
  --ink: #161415;
  --muted: #5b5455;
  --line: #e3dddd;
  --red: #ed1c24;           /* brand red: fills, rules, marks */
  --red-text: #c4111a;      /* brand red darkened for text on white (AA) */
  --focus: #ed1c24;

  --font: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.1rem;
  --step-4: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem);

  --col: 72rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --band: #0c0b0b;
    --on-band: #ffffff;
    --on-band-muted: #b9b2b3;
    --paper: #151314;
    --mist: #1d1a1b;
    --ink: #f1eded;
    --muted: #aaa1a2;
    --line: #322d2e;
    --red: #ed1c24;
    --red-text: #ff6268;
    --focus: #ff6268;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --band: #0c0b0b;
  --on-band: #ffffff;
  --on-band-muted: #b9b2b3;
  --paper: #151314;
  --mist: #1d1a1b;
  --ink: #f1eded;
  --muted: #aaa1a2;
  --line: #322d2e;
  --red: #ed1c24;
  --red-text: #ff6268;
  --focus: #ff6268;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--band);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--red-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--red); color: #fff; padding: 0.6rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.wrap {
  max-width: var(--col);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--band); color: var(--on-band);
  border-bottom: 3px solid var(--red);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.6rem;
}
.brand { display: flex; align-items: center; gap: 0.9rem; color: var(--on-band); text-decoration: none; }
.brand img { width: 66px; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 1.45rem; letter-spacing: 0.01em; }
.brand-tag { white-space: nowrap; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-band-muted); }

.nav-toggle {
  display: none; background: transparent; color: var(--on-band);
  border: 1px solid #4a4445; border-radius: 4px; padding: 0.5rem 0.75rem;
  font: inherit; font-size: var(--step--1); font-weight: 700; cursor: pointer;
}
.site-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0.95rem; justify-content: flex-end; }
.site-nav a {
  color: var(--on-band); text-decoration: none; font-size: 0.86rem; font-weight: 700;
  display: inline-block; padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--on-band-muted); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--band); border-bottom: 3px solid var(--red); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter-r) 1rem var(--gutter-l); }
  .site-nav a { display: block; padding: 0.7rem 0; border-bottom: 1px solid #2a2627; }
  .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: #2a2627; box-shadow: inset 4px 0 0 var(--red); padding-left: 0.8rem; }
  .no-js .site-nav { display: block; position: static; border: 0; }
}

/* ---------- Page heading band ---------- */
.page-head { background: var(--band); color: var(--on-band); }
.page-head .wrap { padding-block: 3rem 3.25rem; display: grid; gap: 1rem; }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--red-text);
}
.section-head .eyebrow { color: var(--red-text); }
.page-head .eyebrow { color: #ff4d53; }
.page-head h1 { font-size: var(--step-4); max-width: 20ch; }
.page-head .lead { color: var(--on-band-muted); font-size: var(--step-1); max-width: 46rem; line-height: 1.5; }

/* Home hero */
.hero > .wrap {
  padding-block: 3.5rem 3rem;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center;
}
.hero h1 { font-size: var(--step-4); max-width: 16ch; }
.hero h1 em { font-style: normal; color: #ff4d53; }
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

.btn {
  display: inline-block; padding: 0.8rem 1.3rem; border-radius: 3px;
  font-weight: 700; text-decoration: none; font-size: 0.95rem; border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #c4111a; }
.btn-ghost { color: var(--on-band); border-color: #5a5354; }
.btn-ghost:hover { border-color: var(--on-band); }
.btn-dark { background: var(--ink); color: var(--paper); }

.code { font-family: "Courier New", Courier, monospace; font-weight: 700; color: #ff4d53; letter-spacing: 0.04em; }

@media (max-width: 860px) {
  .hero > .wrap { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.5rem 2.5rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: 4rem; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--mist); border-top: 0; }
.section.alt + .section { border-top: 0; }
.section-head { display: grid; gap: 0.6rem; margin-bottom: 2.25rem; max-width: 48rem; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); font-size: 1.075rem; }

.prose { display: grid; gap: 1rem; max-width: 42rem; }
.prose p { font-size: 1.05rem; }
.prose h2 { font-size: var(--step-2); margin-top: 1rem; }
.prose h3 { font-size: var(--step-1); margin-top: 0.5rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* Item grids: content-sized blocks separated by rules rather than boxed cards */
.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 2.25rem 2.5rem; }
.items.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.item { display: grid; gap: 0.5rem; align-content: start; padding-top: 1rem; border-top: 3px solid var(--ink); min-width: 0; }
.item h3 { font-size: 1.15rem; }
.item p { color: var(--muted); }
.item .tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red-text); }

.checklist { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.checklist li { position: relative; padding-left: 1.4rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.6rem; height: 3px; background: var(--red); }
.cols-2 { columns: 2 16rem; column-gap: 2.5rem; }
.cols-2 li { break-inside: avoid; margin-bottom: 0.55rem; }

/* Panel: used once per page for the item that needs setting apart */
.panel { background: var(--mist); border-left: 4px solid var(--red); padding: 1.5rem 1.6rem; display: grid; gap: 0.75rem; }
.section.alt .panel { background: var(--paper); }
.panel h2, .panel h3 { font-size: 1.15rem; }

/* Values list */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.values > div { padding: 1.25rem 1.25rem 1.4rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.4rem; align-content: start; }
.values h3 { font-size: 1.05rem; }
.values p { color: var(--muted); font-size: 0.95rem; }

/* PEAR */
.pear { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); }
.pear > div { padding: 1.25rem; border-right: 1px solid var(--line); display: grid; gap: 0.25rem; }
.pear > div:last-child { border-right: 0; }
.pear b { font-size: 2.4rem; line-height: 1; color: var(--red-text); }
.pear span { font-weight: 700; }
@media (max-width: 640px) {
  .pear { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pear > div:nth-child(2) { border-right: 0; }
  .pear > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Measures table */
.table-wrap { overflow-x: auto; }
table.measures { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.measures th, .measures td { text-align: left; padding: 0.7rem 0.9rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.measures th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); border-bottom: 2px solid var(--ink); }
.measures td:first-child { font-weight: 700; white-space: nowrap; }

/* Timeline */
.timeline { list-style: none; padding: 0; display: grid; gap: 0; border-left: 3px solid var(--ink); margin-left: 0.4rem; }
.timeline li { position: relative; padding: 0 0 2.25rem 1.75rem; display: grid; gap: 0.4rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -0.6rem; top: 0.3rem; width: 0.9rem; height: 0.9rem; background: var(--red); border: 3px solid var(--paper); box-sizing: content-box; }
.timeline .when { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red-text); }
.timeline h3 { font-size: 1.25rem; }
.timeline p { color: var(--muted); max-width: 40rem; }

/* Award */
.award { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.award-mark { width: 5.5rem; height: 5.5rem; color: var(--red); }
.award h2, .award h3 { font-size: var(--step-2); }
.award .by { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }
@media (max-width: 520px) { .award { grid-template-columns: 1fr; } }

/* Person */
.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.monogram {
  width: 6.5rem; height: 6.5rem; display: grid; place-items: center;
  background: var(--band); color: #fff; font-weight: 700; font-size: 2rem; letter-spacing: 0.04em;
  border-bottom: 4px solid var(--red);
}
.person h2, .person h3 { font-size: var(--step-2); }
.person .role { color: var(--red-text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }
@media (max-width: 520px) { .person { grid-template-columns: 1fr; } }

/* Contact */
.contact-list { display: grid; gap: 1.5rem; margin: 0; }
.contact-list div { display: grid; gap: 0.2rem; }
.contact-list dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 1.2rem; font-weight: 700; }
.contact-list dd a { color: var(--ink); }

/* CTA band */
.cta { background: var(--red); color: #fff; }
.cta .wrap { padding-block: 2.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.cta h2 { font-size: var(--step-2); max-width: 30ch; }
.cta .btn { background: #141213; color: #fff; }
.cta .btn:hover { background: #000; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--on-band-muted); font-size: 0.92rem; }
.site-footer .wrap { padding-block: 3rem 2rem; display: grid; gap: 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--on-band); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--on-band-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-band); text-decoration: underline; }
.site-footer address { font-style: normal; display: grid; gap: 0.25rem; }
.footer-brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.footer-brand img { width: 72px; }
.footer-base { border-top: 1px solid #2c2829; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; }

/* Eyebrow used as a section heading (mission / vision) */
.prose h2.eyebrow { font-size: 0.78rem; margin-top: 0; line-height: 1.4; }
.award .prose h2, .person .prose h2 { margin-top: 0; }

@media (max-width: 640px) {
  .brand img { width: 52px; }
  .brand-name { font-size: 1.2rem; }
  .brand-tag { font-size: 0.68rem; letter-spacing: 0.08em; }
}
@media (max-width: 420px) { .brand-tag { display: none; } }


/* ---------- Photography ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.photo { margin: 0; display: grid; gap: 0.55rem; min-width: 0; align-content: start; }
.photo picture { display: block; overflow: hidden; background: var(--mist); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { font-size: 0.82rem; color: var(--muted); padding-left: 0.75rem; border-left: 3px solid var(--red); line-height: 1.4; }

/* Hero photo sits on the black band */
.hero-photo picture { aspect-ratio: 4 / 3; border-bottom: 4px solid var(--red); }
.hero-photo figcaption { color: var(--on-band-muted); }

/* At-a-glance strip under the hero */
.glance { border-top: 1px solid #2c2829; }
.glance dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.5rem; }
@media (max-width: 760px) { .glance dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .glance dl { grid-template-columns: 1fr; } }
.glance .wrap { padding-block: 0; }
.glance dl > div { padding: 1rem 0 1.1rem; border-bottom: 1px solid #2c2829; display: grid; gap: 0.2rem; }
.glance dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-band-muted); }
.glance dd { margin: 0; font-weight: 700; color: var(--on-band); }

/* Homepage fleet pair: two landscape photos cropped to one shared height */
.mosaic { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; }
.mosaic .photo picture { height: clamp(15rem, 30vw, 24rem); }
@media (max-width: 640px) {
  .mosaic { grid-template-columns: 1fr; }
  .mosaic .photo picture { height: auto; aspect-ratio: 4 / 3; }
}

/* Split-column photos on About / Services */
.split > .photo picture { aspect-ratio: 4 / 3; }

/* Fleet gallery: wide lead photo over a row of three */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
.gallery .photo picture { aspect-ratio: 4 / 3; }
.gallery .g-wide { grid-column: 1 / -1; }
.gallery .g-wide picture { aspect-ratio: 16 / 8; }
.gallery .g-wide img { object-position: 50% 62%; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-wide picture { aspect-ratio: 4 / 3; }
}

/* Photo inside the history timeline */
.timeline-photo { max-width: 34rem; margin-top: 0.6rem; }
.timeline-photo picture { aspect-ratio: 4 / 3; }

/* Product codes inside running text on light sections */
.code-ink { font-family: "Courier New", Courier, monospace; font-weight: 700; color: var(--red-text); letter-spacing: 0.04em; }

/* Desktop header: brand row on top, full-width navigation row beneath */
@media (min-width: 1241px) {
  .site-header { position: relative; top: auto; }
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; padding-block: 0.9rem 0; }
  .site-nav { flex-basis: 100%; border-top: 1px solid #2c2829; margin-top: 0.9rem; }
  .site-nav ul { justify-content: flex-start; gap: 0 1.6rem; }
  .site-nav a { font-size: 0.92rem; padding: 0.75rem 0 0.7rem; border-bottom-width: 3px; }
}
.glance dl > div:nth-last-child(-n+3) { border-bottom: 0; }
@media (max-width: 760px) { .glance dl > div:nth-last-child(3) { border-bottom: 1px solid #2c2829; } }
@media (max-width: 420px) { .glance dl > div:nth-last-child(2) { border-bottom: 1px solid #2c2829; } }

/* Founder portrait on the Leadership page */
.portrait { margin: 0; width: 11rem; max-width: 100%; }
.portrait picture { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 4px solid var(--red); background: var(--mist); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 520px) { .portrait { width: 9rem; } }

/* Enquiry form and map (Contact page) */
.enquiry-form { display: grid; gap: 1rem; }
.enquiry-form .field { display: grid; gap: 0.35rem; }
.enquiry-form label { font-weight: 700; font-size: 0.92rem; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  font: inherit; padding: 0.65rem 0.75rem; border: 1px solid var(--line);
  border-radius: 3px; background: var(--paper); color: var(--ink); width: 100%;
}
.enquiry-form textarea { min-height: 7rem; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-status { font-weight: 700; }
.map-embed { border: 1px solid var(--line); border-bottom: 4px solid var(--red); }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Delivery journey steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 2.25rem 2.5rem; }
.steps li { display: grid; gap: 0.5rem; align-content: start; padding-top: 1rem; border-top: 3px solid var(--ink); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); }
.step-num { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--red-text); }

/* Print: the whole site prints as one company profile */
.print-only { display: none; }
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .print-only { display: block; }
  .site-header, .site-footer, .skip-link, .cta, .photo, .portrait, .mosaic, .gallery,
  .map-embed, #enquiry, .btn, button, iframe, .award-mark, .hero-actions { display: none !important; }
  .page-view[hidden] { display: block !important; }
  .page-view { page-break-before: always; }
  .page-view:first-of-type { page-break-before: auto; }
  .page-head, .section.alt { background: #fff; color: #000; }
  .page-head .wrap, .hero > .wrap { padding-block: 0.5rem 1rem; display: block; }
  .page-head .lead, .section-head p, .item p, .steps p, .timeline p { color: #000; }
  .section { padding-block: 1.25rem; }
  a { color: #000; text-decoration: none; }
  .print-cover { border-bottom: 3px solid #000; padding-bottom: 1rem; margin-bottom: 1.5rem; }
  .print-cover h1 { font-size: 22pt; }
}

/* single-file version: one page section visible at a time */
.page-view[hidden] { display: none !important; }
