/* RPS Transport (Ipswich) Ltd - site styles */
:root {
  --red: #BA131A;
  --red-dark: #8F0E14;
  --maroon: #4A070A;
  --pink: #F9C9CC;
  --tint: #F6F9F5;
  --ink: #141414;
  --body: #4A4A4A;
  --line: #E2E4E0;
  --white: #FFFFFF;
  --radius: 10px;
  --head: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --text: "Poppins", "Segoe UI", Arial, sans-serif;
  --header-h: 81px;
}

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

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

body {
  margin: 0;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
}

img, video, iframe { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0; }

p { margin: 0 0 1em; }

a { color: inherit; }

:focus-visible { outline: 3px solid #1A73E8; outline-offset: 3px; }

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.container { width: 100%; max-width: 1228px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  padding: 15px 24px; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.85); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-white { background: var(--white); color: var(--red-dark); border-color: var(--white); }
.btn-white:hover { background: var(--pink); border-color: var(--pink); }
.btn-outline { background: var(--white); color: var(--red-dark); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.logo img { width: 300px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  font-family: var(--head); font-weight: 500; font-size: 0.95rem; color: var(--ink);
  text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--red); }
.nav-toggle {
  display: none; font-family: var(--head); font-weight: 600; font-size: 0.95rem;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; padding: 10px 16px; cursor: pointer;
}

/* Hero */
.hero { position: relative; background: var(--ink); color: var(--white); min-height: 620px; display: flex; align-items: center; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.88) 0%, rgba(20,20,20,.68) 45%, rgba(20,20,20,.2) 100%); }
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 72px; }
.hero-inner > * { max-width: 700px; }
.hero-chip {
  display: inline-block; margin-bottom: 20px; padding: 5px 12px; border-radius: 999px;
  background: var(--red); color: var(--white);
  font-family: var(--head); font-weight: 600; font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase;
}
.hero h1 { color: var(--white); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 22px; }
.hero h1 span { display: block; color: var(--pink); }
.hero-lead { font-size: 1.02rem; line-height: 1.75; color: #F3F3F3; margin-bottom: 28px; }
.video-toggle {
  position: absolute; right: 24px; bottom: 20px;
  font-family: var(--head); font-weight: 600; font-size: 0.8rem;
  background: rgba(20,20,20,.75); color: var(--white); border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: 8px 14px; cursor: pointer;
}
.video-toggle:hover { background: var(--ink); }

/* Proof strip */
.proof { background: var(--red); color: var(--white); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 24px 24px 24px 0; }
.proof-item + .proof-item { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.3); }
.proof-item strong { display: block; font-family: var(--head); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.proof-item span { display: block; font-size: 0.85rem; line-height: 1.45; margin-top: 4px; }

/* Ports */
.ports { background: var(--tint); padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.port-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.port-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px;
  font-family: var(--head); font-weight: 500; font-size: 0.85rem; color: var(--ink);
}

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: #E6E6E6; }
.section-dark h2, .section-dark h3 { color: var(--white); }

.eyebrow {
  font-family: var(--head); font-weight: 600; font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin: 0 0 10px;
}
.section-dark .eyebrow { color: #FF8A90; }

h2 { font-weight: 600; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-bottom: 44px; }
.section-intro { margin: 0; padding-top: 30px; font-size: 0.98rem; }
.lead { font-size: 0.98rem; margin-top: 18px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card > img { width: 100%; height: auto; aspect-ratio: 365 / 228; object-fit: cover; border-bottom: 3px solid var(--red); }
.card-body { padding: 20px 20px 24px; }
.card-body h3 { font-weight: 600; font-size: 1.12rem; line-height: 1.3; margin-bottom: 8px; }
.card-body p { font-size: 0.9rem; line-height: 1.75; margin-bottom: 0.9em; }
.card-body p:last-child { margin-bottom: 0; }
.tag {
  display: inline-block; background: #FBE9EA; color: var(--red-dark); border-radius: 4px; padding: 3px 9px;
  font-family: var(--head); font-weight: 600; font-size: 0.75rem !important; line-height: 1.5 !important;
}
.person > img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
.person > img.person-tall { object-position: 50% 28%; }
.role { color: var(--red); font-family: var(--head); font-weight: 600; font-size: 0.8rem !important; margin-top: -4px; }

/* Quote band */
.quote-band { background: var(--red); color: var(--white); padding: 56px 0; }
.quote-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.quote-band h2 { color: var(--white); }
.quote-band p { margin: 10px 0 0; }

/* Fleet */
.fleet-grid { display: grid; grid-template-columns: 0.82fr 1fr; gap: 72px; align-items: center; }
.fleet-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.feature { background: var(--tint); border-left: 3px solid var(--red); border-radius: 6px; padding: 16px 20px; margin-top: 14px; }
.feature h3 { font-weight: 600; font-size: 0.98rem; margin-bottom: 4px; }
.feature p { font-size: 0.88rem; margin: 0; }

/* Banner */
.banner { height: 420px; background: var(--ink); overflow: hidden; }
.banner-video, .banner-img { width: 100%; height: 100%; object-fit: cover; }
.banner-img { object-position: 50% 62%; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); column-gap: 24px; }
.tl-item { position: relative; padding-top: 36px; }
.tl-wide { grid-column: span 2; }
.tl-item::before { content: ""; position: absolute; top: 8px; left: 0; right: -24px; height: 2px; background: var(--red); }
.tl-item::after { content: ""; position: absolute; top: 1px; left: 0; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--red); background: var(--tint); }
.tl-last::before { right: 0; background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 12px); }
.tl-item h3 { color: var(--red); font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.tl-item p { font-size: 0.82rem; line-height: 1.7; margin: 0; }

/* Careers */
.careers-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: start; }
.careers-photo { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 50%; border-radius: var(--radius); position: sticky; top: calc(var(--header-h) + 24px); }
.benefits-title { font-family: var(--head); font-weight: 600; color: var(--white); margin: 22px 0 14px; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.benefit { background: #1F1F1F; border: 1px solid #343434; border-radius: 8px; padding: 18px 20px; }
.benefit-pay { grid-row: span 2; }
.benefit h3 { color: #FF8A90; font-weight: 600; font-size: 0.98rem; margin-bottom: 10px; }
.benefit ul { list-style: none; margin: 0; padding: 0; }
.benefit li { position: relative; padding-left: 18px; font-size: 0.88rem; line-height: 1.6; margin-bottom: 8px; }
.benefit li:last-child { margin-bottom: 0; }
.benefit li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; background: var(--red); }
.benefits-close { font-size: 0.9rem; margin: 20px 0 24px; }
.small-note { font-size: 0.82rem; line-height: 1.7; color: #C9C9C9; margin: 18px 0 0; }
.small-note a { color: var(--white); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-box { display: block; background: var(--white); border: 2px solid var(--red); border-radius: 8px; padding: 12px 18px; margin-top: 12px; text-decoration: none; }
.contact-box:hover { background: #FBE9EA; }
.contact-label { display: block; font-family: var(--head); font-weight: 600; font-size: 0.68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.contact-label-plain { margin: 20px 0 2px; }
.contact-value { display: block; font-family: var(--head); font-weight: 600; font-size: 1.15rem; color: var(--ink); overflow-wrap: anywhere; }
.address { color: var(--ink); margin-bottom: 20px; }
.hours { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 0.92rem; }
.hours caption { caption-side: top; text-align: left; font-family: var(--head); font-weight: 600; color: var(--ink); padding-bottom: 8px; }
.hours th, .hours td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); font-weight: 400; color: var(--ink); }
.hours tr:first-child th, .hours tr:first-child td { border-top: 0; }
.hours th { width: 45%; font-weight: 500; }
.map { width: 100%; height: 440px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
#map { position: relative; isolation: isolate; overflow: hidden; background: #F3E3E4; }
#map .leaflet-tile-pane { filter: grayscale(1) brightness(.84) contrast(1.5); }
#map::after { content: ""; position: absolute; inset: 0; background: var(--red); mix-blend-mode: screen; pointer-events: none; z-index: 450; }
#map .leaflet-container, #map.leaflet-container { font-family: var(--text); }
.map-pin span { display: block; width: 30px; height: 30px; margin: 2px auto 0; background: #141414; border: 4px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,.35); }

/* Footer */
.site-footer { background: var(--maroon); color: #F3DADB; padding: 56px 0; font-size: 0.85rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.site-footer p { margin: 0 0 8px; }
.footer-logo { width: 200px; height: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.rha { display: inline-block; background: var(--white); border-radius: 6px; padding: 6px 8px; margin-bottom: 18px; }
.rha img { width: 75px; height: auto; }

/* Mobile call bar */
.call-bar { display: none; }

/* Simple content pages */
.page { padding: 64px 0 96px; }
.page .container { max-width: 860px; }
.page h1 { font-weight: 700; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; margin-bottom: 8px; }
.page h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.page h3 { font-size: 1.05rem; font-weight: 600; margin: 20px 0 6px; }
.page ul { margin: 0 0 1em; padding-left: 22px; }
.page li { margin-bottom: 4px; }
.page a { color: var(--red-dark); }

/* Responsive */
@media (max-width: 1100px) {
  .timeline { display: block; border-left: 2px solid var(--red); margin-left: 7px; padding-left: 30px; }
  .tl-item { padding-top: 0; margin-bottom: 28px; }
  .tl-item:last-child { margin-bottom: 0; }
  .tl-item::before { display: none; }
  .tl-item::after { left: -39px; top: 4px; }
  .tl-item p { font-size: 0.9rem; max-width: 70ch; }
}

@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .logo img { width: 220px; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-call { margin-top: 16px; }
  .section-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .section-intro { padding-top: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item { padding: 18px 16px 18px 0; }
  .proof-item + .proof-item { padding-left: 0; border-left: 0; }
  .proof-item:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.3); }
  .proof-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.3); }
  .fleet-grid, .careers-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .fleet-photo { aspect-ratio: 4 / 3; }
  .careers-photo { position: static; aspect-ratio: 3 / 2; }
  .banner { height: 300px; }
}

@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .section { padding: 56px 0; }
  .hero { min-height: 0; }
  .hero-inner { padding-top: 48px; padding-bottom: 72px; }
  .hero-shade { background: rgba(20,20,20,.72); }
  .video-toggle { right: 16px; bottom: 14px; }
  .card-grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .benefit-pay { grid-row: auto; }
  .btn-row .btn { flex: 1 1 100%; }
  .map { height: 320px; }
  .banner { height: 220px; }
  .call-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--white); border-top: 1px solid var(--line); padding: 10px 12px;
  }
  .call-bar .btn { padding: 13px 12px; }
}

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