/* manwithavansouthampton.com. One stylesheet, written for this site only. */

:root {
  --sv-paper: #F6F7F4;
  --sv-ink: #1E2A32;
  --sv-harbour: #0E6E73;
  --sv-hivis: #F2C230;
  --sv-hivis-hover: #E3B21C;
  --sv-slate: #DCE6EA;
  --sv-line: rgba(30, 42, 50, 0.18);
  --sv-column: 1040px;
  --sv-text: 720px;
  --sv-gutter: 16px;
}

* { box-sizing: border-box; }

html { background: var(--sv-paper); }

body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-stretch: 100%;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--sv-ink);
  background: var(--sv-paper);
  -webkit-font-smoothing: antialiased;
}

/* type */
h1, h2, h3, .sv-wordmark, .sv-rate-van, .sv-rate-price, .sv-footer h2 {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: var(--sv-ink);
}
h1, h2, h3, .sv-rate-van, .sv-rate-price {
  font-stretch: 125%;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.3rem; margin: 0 0 0.45em; }
h2 { font-size: 1.5rem; margin: 2.4em 0 0.7em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 0.4em; }
.sv-main h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--sv-hivis);
  margin-top: 10px;
}

p, ul, ol, table { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.45em; }
.sv-main p, .sv-main li, .sv-main figcaption { max-width: 70ch; }
.sv-lead { font-size: 1.15rem; line-height: 1.5; }

a { color: var(--sv-harbour); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sv-ink); text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--sv-hivis); outline-offset: 3px; }
.sv-skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--sv-ink);
  color: #fff;
}
.sv-skip:focus { left: 8px; z-index: 30; }

/* header: harbour bar, sticky */
.sv-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--sv-harbour);
  color: #fff;
}
.sv-bar-inner {
  max-width: var(--sv-column);
  margin: 0 auto;
  padding: 10px var(--sv-gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "mark cta" "nav nav";
  align-items: center;
  gap: 6px 12px;
}
.sv-wordmark {
  grid-area: mark;
  font-size: 1.1rem;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
}
.sv-wordmark:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; }
.sv-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  padding: 2px 0;
}
.sv-nav a { color: #fff; text-decoration: none; font-size: 0.95rem; padding: 4px 0; }
.sv-nav a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; }
.sv-bar-cta { grid-area: cta; padding: 9px 14px; font-size: 0.95rem; white-space: nowrap; }

@media (min-width: 1100px) {
  .sv-bar-inner { grid-template-columns: auto 1fr auto; grid-template-areas: "mark nav cta"; gap: 0 28px; }
  .sv-wordmark { font-size: 1.2rem; white-space: nowrap; }
  .sv-nav { flex-wrap: nowrap; gap: 20px; padding: 0; }
}

/* buttons */
.sv-cta {
  display: inline-block;
  background: var(--sv-hivis);
  color: var(--sv-ink);
  font-weight: 700;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 2px;
  line-height: 1.2;
}
.sv-cta:hover { background: var(--sv-hivis-hover); color: var(--sv-ink); }
.sv-secondary {
  display: inline-block;
  color: var(--sv-harbour);
  font-weight: 700;
  padding: 13px 2px;
  text-decoration: none;
  border-bottom: 2px solid var(--sv-harbour);
  line-height: 1.2;
}
.sv-secondary:hover { color: var(--sv-ink); border-color: var(--sv-ink); }
.sv-cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin: 1.4em 0 0.7em; }
.sv-cta-note { font-size: 0.9rem; color: #4F5B63; margin-bottom: 1.8em; }

/* main column: one 1040px column, text held to 720px on its left edge */
.sv-main {
  max-width: var(--sv-column);
  margin: 0 auto;
  padding: 40px var(--sv-gutter) 72px;
}
.sv-main > * { max-width: var(--sv-text); }
.sv-main > section { margin-bottom: 1em; }
.sv-main > section > h2:first-child { margin-top: 1.6em; }

/* hero: the rate card */
.sv-hero { max-width: none; }
.sv-hero > * { max-width: var(--sv-text); }
.sv-hero h1 { margin-top: 0.2em; }
.sv-hero .sv-lead { margin-bottom: 1.4em; }
.sv-rates {
  max-width: var(--sv-column);
  list-style: none;
  margin: 0 0 0.9em;
  padding: 0;
  background: var(--sv-slate);
  display: grid;
  grid-template-columns: 1fr;
}
.sv-rate { padding: 22px 22px 20px; border-top: 1px solid var(--sv-line); }
.sv-rate:first-child { border-top: 0; }
.sv-rate svg { display: block; width: 132px; height: 72px; margin-bottom: 10px; }
.sv-rate-van { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.sv-rate-price { display: block; font-size: 2.1rem; line-height: 1.1; margin-bottom: 6px; }
.sv-rate-price small { font-size: 1.05rem; font-weight: 400; font-stretch: 100%; letter-spacing: 0; margin-left: 4px; }
.sv-rate-fits { display: block; font-size: 0.95rem; line-height: 1.45; color: #4F5B63; }
.sv-rate-shared { margin-bottom: 0.4em; }
@media (min-width: 680px) {
  .sv-rates { grid-template-columns: 1fr 1fr 1fr; }
  .sv-rate { border-top: 0; border-left: 1px solid var(--sv-line); }
  .sv-rate:first-child { border-left: 0; }
}

/* photo placeholders, 16:9 Slate panels until Dom's photos arrive */
.sv-panel {
  margin: 1.6em 0;
  background: var(--sv-slate);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding: 16px 18px;
}
.sv-panel figcaption { font-size: 0.9rem; line-height: 1.45; color: var(--sv-ink); }

/* tables */
.sv-table, .sv-areas { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.sv-table th, .sv-table td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--sv-line); vertical-align: top; }
.sv-table th { font-weight: 700; border-bottom: 2px solid var(--sv-ink); }
.sv-areas td { width: 33.3%; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--sv-line); vertical-align: top; }

/* lists. Only the booking sequence shows numbers. */
.sv-steps { list-style: none; padding-left: 0; }
.sv-steps li { padding: 10px 0; margin: 0; border-top: 1px solid var(--sv-line); }
.sv-steps li:last-child { border-bottom: 1px solid var(--sv-line); }
.sv-steps-booking { counter-reset: sv-step; }
.sv-steps-booking li { counter-increment: sv-step; position: relative; padding-left: 2.2em; }
.sv-steps-booking li::before { content: counter(sv-step); position: absolute; left: 0; top: 10px; font-weight: 700; font-stretch: 125%; color: var(--sv-harbour); }
.sv-services { list-style: none; padding-left: 0; }
.sv-services li { padding: 10px 0; margin: 0; border-top: 1px solid var(--sv-line); }
.sv-services li:last-child { border-bottom: 1px solid var(--sv-line); }

/* reviews */
.sv-review-label { margin-top: 2em; color: #4F5B63; }
.sv-review { background: var(--sv-slate); padding: 18px 20px; margin: 0 0 12px; max-width: var(--sv-text); }
.sv-review p { margin: 0 0 0.4em; }
.sv-review-name { font-weight: 700; }
.sv-review-stars { color: var(--sv-ink); letter-spacing: 0.08em; margin-left: 8px; }
.sv-review-text { font-size: 1.1rem; }
.sv-review-job { font-size: 0.9rem; color: #4F5B63; margin-bottom: 0; }

.sv-contact-email { font-size: 1.3rem; font-weight: 700; }

/* footer: ink, white text, three columns at the full column width */
.sv-footer {
  background: var(--sv-ink);
  color: #fff;
  padding: 40px var(--sv-gutter) 48px;
  font-size: 0.93rem;
}
.sv-footer-cols {
  max-width: var(--sv-column);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 600px) { .sv-footer-cols { grid-template-columns: 1fr 1fr 1fr; } }
.sv-footer h2 { font-size: 1rem; margin: 0 0 0.6em; color: #fff; }
.sv-footer ul { list-style: none; padding: 0; margin: 0; }
.sv-footer li { margin: 0 0 6px; }
.sv-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.5); }
.sv-footer a:hover { color: #fff; text-decoration-color: #fff; }
.sv-footer-contact, .sv-footer-operator { max-width: var(--sv-column); margin: 0 auto 6px; }
.sv-footer-operator { color: #D2D5D6; font-size: 0.85rem; }

/* no motion on this site; the rule is here so nothing added later animates for people who have asked it not to */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* On phones the header scrolls with the page: pinned, it took a sixth of the screen. */
/* phones: the header stays at the top too, now that it is compact */

/* quote page: the embedded form uses the full 1040px column, not the 720px text width */
.sv-main > .sv-form-wrap { max-width: none; margin: 8px 0 20px; }
/* anything scrolled into view (including from inside the embedded form) stops below the sticky header */
@media (min-width: 900px) { html { scroll-padding-top: 76px; } }

/* quote page: the form is the page. Wider column, short heading, no header button */
.sv-main.sv-quote-main { max-width: 1240px; padding-top: 8px; }
.sv-quote-main > h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0.6em 0 0.4em; }
.sv-quote-main > .sv-form-wrap { max-width: none; margin: 0 0 16px; }
.sv-quote-trust { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 28px; max-width: none; color: var(--sv-ink); font-size: 0.95rem; }
.sv-quote-trust li { max-width: none; padding-left: 18px; position: relative; }
.sv-quote-trust li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; background: var(--sv-hivis); }
.sv-on-quote .sv-bar-cta { visibility: hidden; }
@media (max-width: 899px) { .sv-on-quote .sv-bar-cta { display: none; } }
.sv-on-quote .sv-bar-inner { max-width: 1240px; }
.sv-quote-main > .sv-form-wrap { margin-bottom: 48px; }
@media (max-width: 599px) {
  .sv-quote-main > h1 { margin: 0.4em 0 0.3em; }
  .sv-quote-trust { gap: 2px; font-size: 0.85rem; line-height: 1.35; margin-bottom: 12px; }
  .sv-quote-trust li { padding-left: 14px; }
  .sv-quote-trust li::before { width: 6px; height: 6px; top: 0.45em; }
}

/* one customer's words, set as a quote: Harbour rule on the left, no box */
.sv-said { margin: 28px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--sv-harbour); max-width: var(--sv-text); }
.sv-said p { font-size: 1.15rem; font-weight: 600; margin: 0 0 6px; }
.sv-said footer { font-size: 0.9rem; color: var(--sv-ink); opacity: 0.8; }

/* drivers: real phone photos with a plain Ink frame, no cards */
.sv-main > #drivers { max-width: none; }
.sv-drivers { list-style: none; padding: 0; margin: 20px 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: none; }
#drivers > .sv-drivers { max-width: none; }
.sv-driver { max-width: none; }
.sv-driver-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--sv-ink); }
.sv-driver-name { font-weight: 700; font-stretch: 125%; font-size: 1.25rem; margin: 10px 0 2px; }
.sv-driver-meta { margin: 0; font-size: 0.95rem; }
.sv-profile { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; margin: 40px 0; max-width: var(--sv-column); }
.sv-main > .sv-profile { max-width: var(--sv-column); }
.sv-profile-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--sv-ink); }
.sv-profile-text h2 { margin-top: 0; }
.sv-profile-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 12px 0 0; }
.sv-profile-facts dt { font-weight: 700; }
.sv-profile-facts dd { margin: 0; }
@media (max-width: 699px) {
  .sv-drivers { grid-template-columns: 1fr; gap: 24px; }
  .sv-driver { display: grid; grid-template-columns: 112px 1fr; gap: 4px 14px; align-items: start; }
  .sv-driver a { grid-row: span 2; }
  .sv-driver-name { margin-top: 0; }
  .sv-profile { grid-template-columns: 1fr; gap: 14px; }
  .sv-profile-photo { max-width: 220px; }
}

/* real photos: plain 2px Ink frame, caption underneath, tall ones held narrower */
.sv-photo { margin: 24px 0; }
.sv-main .sv-photo figcaption { font-size: 0.9rem; margin-top: 6px; max-width: none; }
.sv-photo img { display: block; width: 100%; height: auto; border: 2px solid var(--sv-ink); }
.sv-photo-tall { max-width: 400px; }

/* hero: the words on the left, a real driver and van on the right, van sizes underneath */
.sv-hero > .sv-hero-top { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: center; margin-bottom: 32px; }
.sv-hero-copy > * { max-width: 600px; }
.sv-hero-copy h1 { font-size: 2.9rem; line-height: 1.05; }
.sv-hero-photo { margin: 0; }
.sv-hero-photo img { display: block; width: 100%; height: auto; border: 2px solid var(--sv-ink); }
.sv-hero-photo figcaption { font-size: 0.9rem; margin-top: 6px; }
@media (max-width: 799px) {
  .sv-hero > .sv-hero-top { grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
  .sv-hero-copy h1 { font-size: 2.2rem; }
  .sv-hero-photo img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 45%; }
}

/* What we move: services drop down on hover or keyboard focus (desktop); on phones the link goes to the list on the home page */
.sv-nav-group { position: relative; display: inline-block; }
.sv-nav-sub { display: none; }
@media (min-width: 1100px) {
  .sv-nav-group > a::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: middle;
    border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #fff; }
  .sv-nav-sub { position: absolute; top: 100%; left: -14px; min-width: 240px; padding: 8px 0; background: var(--sv-harbour);
    border-top: 3px solid var(--sv-hivis); box-shadow: none; z-index: 30; }
  .sv-nav-group:hover .sv-nav-sub, .sv-nav-group:focus-within .sv-nav-sub { display: block; }
  .sv-nav-sub a { display: block; padding: 8px 14px; white-space: nowrap; }
  .sv-nav-sub a:hover { background: var(--sv-ink); text-decoration: none; }
}

/* compact phone header: name, Get a price and a Menu button; the links open below (no JavaScript: links stay visible) */
.sv-menu-btn { display: none; }
.sv-nav-email { display: none; }
@media (max-width: 1099px) {
  html { scroll-padding-top: 72px; }
  .sv-bar-inner { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "mark cta menu" "nav nav nav"; gap: 0 8px; padding: 8px var(--sv-gutter); }
  .sv-wordmark { font-size: 1rem; line-height: 1.15; }
  .sv-bar-cta { padding: 8px 12px; font-size: 0.9rem; }
  html.sv-js .sv-menu-btn { display: inline-block; grid-area: menu; background: transparent; color: #fff; border: 2px solid #fff;
    border-radius: 2px; padding: 6px 10px; font: inherit; font-weight: 700; font-size: 0.9rem; line-height: 1.2; cursor: pointer; }
  html.sv-js .sv-nav { display: none; }
  html.sv-js .sv-open .sv-nav { display: flex; flex-direction: column; gap: 0; padding: 6px 0 12px; max-height: calc(100vh - 64px); overflow-y: auto; }
  html.sv-js .sv-open .sv-nav a { display: block; padding: 11px 0; font-size: 1rem; border-top: 1px solid rgba(255,255,255,0.22); }
  html.sv-js .sv-open .sv-nav-group { display: block; }
  html.sv-js .sv-open .sv-nav-sub { display: block; }
  html.sv-js .sv-open .sv-nav-sub a { padding-left: 16px; font-size: 0.95rem; }
  html.sv-js .sv-open .sv-nav-email { display: block; font-weight: 700; color: var(--sv-hivis); }
}

/* the email, said plainly, since there is no phone number */
.sv-hero-ask { font-size: 0.95rem; margin-top: 2px; }
.sv-hero-ask a { font-weight: 700; }
.sv-ask { background: var(--sv-slate); padding: 22px var(--sv-gutter); }
.sv-ask p { max-width: var(--sv-column); margin: 0 auto; font-size: 1.05rem; line-height: 1.5; }
.sv-ask a { font-weight: 700; color: var(--sv-harbour); overflow-wrap: anywhere; }

/* full menu (1100px and wider): links never break across lines */
@media (min-width: 1100px) { .sv-nav a { white-space: nowrap; } }
