/* Primrose Mobile Valeting - site styles.
   Colours are taken from the A5 leaflet (brief/Primrose_A5_Leaflet_PROOF_A5.pdf): deep navy ground,
   bright yellow for the brand and calls to action, a strong blue, and one colour per valeting package. */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url(fonts/poppins-800.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 900; font-style: italic; font-display: swap; src: url(fonts/poppins-900i.woff2) format("woff2"); }
@font-face { font-family: "Kaushan Script"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/kaushan-script.woff2) format("woff2"); }

:root {
  --navy-950: #030a1a;
  --navy-900: #05132d;
  --navy-800: #091f48;
  --navy-700: #11397e;
  --blue: #1a73d9;
  --yellow: #fee101;
  --red: #e0232a;
  --green: #1e9a46;
  --orange: #f17a12;
  --purple: #7d2fc1;
  --teal: #12a1a6;
  --paper: #f4f5f9;
  --ink: #0b1630;
  --muted: #5a6478;
  --line: #dde1ea;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(5, 19, 45, .12);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--navy-900);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
abbr[title] { text-decoration: none; cursor: help; }
svg { width: 1em; height: 1em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

/* Draft band: only in draft builds (scripts/build.py) */
.draft-band {
  background: #c40000; color: #fff; text-align: center;
  font-weight: 800; font-size: 13px; letter-spacing: .08em; padding: 6px 12px;
}

/* ---------- Logo ---------- */
/* The logo artwork (from the leaflet designer, brief/from-desktop/primrose-logo.svg) is drawn for dark grounds only:
   its white car outline vanishes on white, so it is never placed on the light sections. */
.logo { display: block; flex: none; }
.logo img { height: 52px; width: auto; }
@media (max-width: 900px) { .logo img { height: 44px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 800; text-decoration: none; border-radius: 999px;
  padding: .7em 1.25em; min-height: 44px; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn svg { font-size: 1.15em; }
.btn-yellow { background: var(--yellow); color: var(--navy-900); }
.btn-yellow:hover { background: #fff04d; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { font-size: 17px; padding: .8em 1.5em; }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }

/* ---------- Header: scrolls away on desktop, stays at the top on phones (Ross, 24 Oct) ---------- */
.top { background: var(--navy-950); border-bottom: 3px solid var(--yellow); }
.top-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--yellow); }
.btn-call { padding: .5em 1em; font-size: 15px; }
@media (max-width: 900px) {
  .top { position: sticky; top: 0; z-index: 50; }
  .top-inner { min-height: 60px; }
  .nav { display: none; }
  .btn-call { margin-left: auto; }
  section[id] { scroll-margin-top: 64px; }
}
@media (max-width: 420px) {
  .btn-call-number { display: none; }
  .btn-call::after { content: "Call"; }
}

/* ---------- Hero ---------- */
/* The leaflet photos are too small at source to stretch full width, so the ground is a deliberately blurred
   copy (hero-glow.jpg, 480px wide) under navy, and the photos sit on top as small framed prints. */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 80% at 85% 30%, rgba(26,115,217,.45), transparent 70%),
    linear-gradient(90deg, rgba(3,10,26,.97) 0%, rgba(3,10,26,.86) 45%, rgba(3,10,26,.55) 100%),
    url("img/hero-glow.jpg") center / cover no-repeat,
    var(--navy-950);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px;
  padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px);
}
.hero-copy { grid-column: 1; grid-row: 1; }

/* Photo prints: white borders and a slight tilt, like the leaflet's snapshots */
.hero-visual { grid-column: 2; grid-row: 1; position: relative; aspect-ratio: 1 / .9; width: 100%; max-width: 560px; justify-self: end; }
.snap { position: absolute; margin: 0; background: #fff; padding: 7px; border-radius: 6px; box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.snap img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.snap-main { top: 4%; right: 0; width: 80%; aspect-ratio: 720 / 559; transform: rotate(3deg); }
.snap-a { left: 0; bottom: 2%; width: 46%; aspect-ratio: 4 / 3.2; transform: rotate(-5deg); z-index: 1; }
.snap-b { right: 8%; bottom: 0; width: 34%; aspect-ratio: 1 / 1.05; transform: rotate(4deg); z-index: 1; }
.eyebrow {
  display: inline-block; margin: 0 0 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  font-size: 13px; color: var(--navy-900); background: var(--yellow); padding: 4px 12px; border-radius: 4px;
  transform: rotate(-1.5deg);
}
/* The brand is the headline: the leaflet logo artwork, with its name as the image's text */
.hero-brand { margin: 0 0 14px; line-height: 1; }
.hero-brand img { width: 100%; max-width: 580px; height: auto; margin-left: -2%; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); }
.hero-strap {
  margin: 0 0 20px; font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(17px, 2.2vw, 24px); line-height: 1.2; max-width: 26ch;
}
.hero-strap .hl { color: var(--yellow); }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 28px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: clamp(15px, 1.8vw, 18px); }
.ticks li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2305132d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px no-repeat;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Shown near every lone "from" price so it is not misleading (agreed with the Facebook page wording) */
.hero-min { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); }
.star { font-size: .55em; vertical-align: super; line-height: 0; margin-left: 1px; }

.starburst {
  --size: clamp(150px, 19vw, 220px);
  width: var(--size); height: var(--size);
  display: grid; place-content: center; text-align: center; text-decoration: none;
  background: var(--yellow); color: var(--navy-900);
  clip-path: polygon(50% 0%, 57% 10%, 68% 4%, 71% 16%, 83% 14%, 81% 26%, 93% 29%, 87% 40%, 98% 47%, 88% 55%, 96% 65%, 84% 70%, 88% 82%, 75% 81%, 73% 93%, 62% 87%, 55% 98%, 47% 89%, 37% 97%, 33% 85%, 21% 89%, 21% 77%, 8% 76%, 13% 64%, 2% 57%, 11% 49%, 3% 38%, 15% 34%, 12% 22%, 25% 22%, 26% 9%, 37% 14%, 42% 2%);
  transform: rotate(-6deg);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.4));
  transition: transform .2s ease;
}
@media (hover: hover) { .starburst:hover { transform: rotate(-2deg) scale(1.04); } }
.sb-from { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: calc(var(--size) * .14); line-height: 1; }
.sb-price sup { font-size: .45em; vertical-align: super; line-height: 0; }
.sb-price {
  font-weight: 900; font-style: italic; color: var(--red); line-height: 1;
  font-size: calc(var(--size) * .34);
  padding-bottom: 6px; border-bottom: 4px solid var(--red);
}

/* Desktop: the starburst overlaps the top corner of the photo prints */
.starburst { grid-column: 2; grid-row: 1; justify-self: start; align-self: start; z-index: 2; margin: -8px 0 0 -12px; }

@media (max-width: 980px) {
  /* One column. The copy's children join the hero grid so the starburst can sit beside the brand */
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "eye eye" "brand sb" "strap strap" "ticks ticks" "act act" "min min" "vis vis";
    gap: 0 8px; padding-top: 22px;
  }
  .hero-copy { display: contents; }
  .eyebrow { grid-area: eye; justify-self: start; }
  .hero-brand { grid-area: brand; align-self: center; }
  .hero-brand img { max-width: 480px; margin-left: -3%; }
  .starburst { grid-area: sb; --size: clamp(92px, 22vw, 150px); align-self: center; margin: 0; }
  .hero-strap { grid-area: strap; margin-top: 6px; }
  .ticks { grid-area: ticks; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  .hero-actions { grid-area: act; }
  .hero-min { grid-area: min; }
  .hero-actions .btn { flex: 1 1 220px; }
  .hero-visual { grid-area: vis; justify-self: center; max-width: 520px; margin-top: 30px; aspect-ratio: 1 / .82; }
}
@media (max-width: 400px) {
  .ticks { grid-template-columns: 1fr; }
}
/* Short screens (landscape phones): keep the hero compact */
@media (max-height: 500px) {
  .hero-inner { padding-top: 20px; padding-bottom: 24px; }
  .hero-brand img { max-width: 320px; }
  .ticks { margin-bottom: 16px; }
  .starburst { --size: 120px; }
  .hero-visual { max-width: 400px; }
}

/* ---------- Vehicle strip ---------- */
.strip { background: var(--yellow); color: var(--navy-900); }
.kinds {
  list-style: none; margin: 0; padding: 14px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 10px 20px;
}
.kind { display: flex; align-items: center; gap: 12px; font-weight: 800; line-height: 1.2; font-size: 16px; }
.kind-icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; border: 3px solid #fff; font-size: 22px; box-shadow: 0 2px 6px rgba(5,19,45,.25);
}
.kind-green .kind-icon { background: var(--green); }
.kind-blue .kind-icon { background: var(--blue); }
.kind-orange .kind-icon { background: var(--orange); }
.kind-purple .kind-icon { background: var(--purple); }
@media (max-width: 520px) {
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kind { font-size: 14px; gap: 8px; }
  .kind-icon { width: 38px; height: 38px; font-size: 18px; }
}

/* ---------- Section headings ---------- */
.section-head { text-align: center; margin-bottom: 24px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 17px; }
.script-title { margin: 0; font-family: "Kaushan Script", cursive; font-weight: 400; color: var(--navy-900); font-size: clamp(40px, 6vw, 60px); line-height: 1.1; }
.section-title { margin: 0; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; color: var(--navy-900); }

/* ---------- Prices ---------- */
.prices { background: var(--paper); padding: clamp(44px, 6vw, 76px) 0; }
.sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 28px; max-width: 820px; }
.sizes[hidden] { display: none; }
.sizes button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 600 15px/1.2 "Poppins", system-ui, sans-serif; color: var(--navy-900);
  background: #fff; border: 2px solid var(--navy-900); border-radius: 999px; padding: 8px 16px; cursor: pointer;
}
.sizes button svg { width: 30px; height: 15px; color: var(--navy-700); }
.sizes button[aria-pressed="true"] { background: var(--navy-900); color: var(--yellow); }
.sizes button[aria-pressed="true"] svg { color: var(--yellow); }
@media (hover: hover) { .sizes button:hover { border-color: var(--blue); } }

.pkg-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-style: normal;
}
.card-note { margin: -4px 16px 12px; font-size: 13px; font-style: italic; color: var(--muted); }
.card-book { margin: auto 16px 16px; background: var(--c); color: #fff; }
.card-book:hover { filter: brightness(1.08); }
.c-blue { --c: var(--blue); } .c-green { --c: var(--green); } .c-orange { --c: var(--orange); }
.c-purple { --c: var(--purple); } .c-red { --c: var(--red); } .c-teal { --c: var(--teal); }
.notes { margin: 16px 2px 0; color: var(--muted); font-size: 13px; font-style: italic; font-weight: 600; text-align: center; }
.notes p { margin: 0 0 2px; }

.min-charge {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 0 14px; max-width: 620px; margin: 28px auto 0;
  background: var(--yellow); color: var(--navy-900); border-radius: var(--radius); overflow: hidden; padding-left: 18px; box-shadow: var(--shadow);
}
.mc-label { margin: 0; font-weight: 900; text-transform: uppercase; font-size: 14px; line-height: 1.1; max-width: 7em; overflow-wrap: normal; }
.mc-amount { margin: 0; font-weight: 900; font-style: italic; font-size: clamp(40px, 6vw, 54px); line-height: 1; }
.mc-detail { background: var(--navy-800); color: #fff; padding: 14px 18px; font-size: 14px; line-height: 1.4; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.mc-detail strong { font-size: 16px; }
.mc-detail span { display: block; }
@media (max-width: 460px) {
  .min-charge { grid-template-columns: auto 1fr; padding: 16px 0 0 0; }
  .mc-label { padding-left: 18px; }
  .mc-detail { grid-column: 1 / -1; margin-top: 14px; }
}

/* ---------- How to book ---------- */
.how { background: #fff; padding: clamp(44px, 6vw, 76px) 0; }
.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.steps li { background: var(--paper); border-radius: var(--radius); padding: 20px 22px; border-left: 6px solid var(--yellow); }
.steps b { display: block; font-weight: 900; font-style: italic; font-size: 34px; line-height: 1; color: var(--navy-900); }
.steps h3 { margin: 6px 0 4px; font-size: 19px; color: var(--navy-900); }
.steps p { margin: 0; color: var(--muted); }
.steps a { color: var(--navy-900); font-weight: 800; white-space: nowrap; }

/* ---------- Book / area ---------- */
.book { background: var(--navy-900); color: #fff; border-top: 6px solid var(--yellow); padding: clamp(40px, 6vw, 72px) 0; text-align: center; }
.book .script-title { color: var(--yellow); font-size: clamp(32px, 5vw, 50px); transform: rotate(-2deg); }
.book-area { margin: 14px auto 22px; max-width: 46ch; font-size: 17px; color: rgba(255,255,255,.85); }
.contact-label { margin: 0; font-weight: 800; font-size: 18px; }
.contact-number { display: inline-block; font-weight: 900; color: var(--yellow); text-decoration: none; font-size: clamp(34px, 7vw, 56px); line-height: 1.1; white-space: nowrap; }
.contact-actions { display: flex; justify-content: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.contact-actions .btn { min-width: 140px; }
/* Kept narrow (the source is small) and faded into the navy at the edges, as on the leaflet's foot */
.book-vehicles img {
  width: 100%; max-width: 760px; margin: 34px auto 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent), linear-gradient(0deg, #000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent), linear-gradient(0deg, #000 70%, transparent);
  mask-composite: intersect;
}
.book { padding-bottom: clamp(16px, 3vw, 32px); }

/* ---------- Footer ---------- */
.foot { background: var(--navy-950); color: rgba(255,255,255,.75); font-size: 14px; padding: 28px 0 32px; }
.foot-inner { display: grid; gap: 4px; text-align: center; }
.foot p { margin: 0; }
.foot-logo { margin-bottom: 6px !important; }
.foot-logo img { height: 56px; width: auto; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Price table, laid out like the leaflet (chosen by Ross over price panels, 28 Oct) ---------- */
.pt-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.price-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.price-table thead th {
  background: var(--navy-900); color: #fff; font-weight: 800; font-size: 13px; line-height: 1.2;
  text-transform: uppercase; padding: 14px 8px; text-align: center; vertical-align: bottom;
}
.price-table thead th svg { display: block; width: 36px; height: 18px; margin: 0 auto 6px; color: var(--yellow); }
.price-table thead .pt-corner {
  text-align: left; color: var(--yellow); font-size: 18px; font-style: italic; font-weight: 900; padding-left: 20px; vertical-align: middle;
}
.price-table tbody th { text-align: left; font-weight: 400; padding: 14px 16px 14px 18px; border-left: 6px solid var(--c); width: 34%; }
.price-table tbody tr:nth-child(even) > * { background: var(--paper); }
.price-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.pt-name { display: flex; align-items: center; gap: 10px; color: var(--c); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 18px; line-height: 1.15; }
.pt-name .pkg-num { background: var(--c); color: #fff; font-size: 14px; width: 26px; height: 26px; }
.pt-desc { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.price-table td { text-align: center; font-weight: 900; font-size: 22px; color: var(--navy-900); padding: 10px 6px; white-space: nowrap; }
/* The package column stays put while the prices scroll sideways on small screens */
.price-table tbody th, .price-table thead .pt-corner { position: sticky; left: 0; z-index: 1; }
.price-table tbody th { background: #fff; }
[data-picks].has-pick .price-table [data-size]:not(.picked) { opacity: .35; }
[data-picks].has-pick .price-table td.picked { color: var(--c); }
[data-picks].has-pick .price-table thead th.picked { background: var(--navy-700); }
@media (max-width: 760px) {
  /* With a vehicle chosen, phones show just that column so the whole table fits without scrolling */
  [data-picks].has-pick .price-table { min-width: 0; }
  [data-picks].has-pick .price-table [data-size]:not(.picked) { display: none; }
  .price-table { min-width: 600px; }
  .price-table tbody th { width: 150px; padding: 12px 8px 12px 10px; }
  .price-table thead .pt-corner { font-size: 14px; padding-left: 12px; }
  .pt-name { font-size: 14px; gap: 6px; }
  .pt-name .pkg-num { width: 22px; height: 22px; font-size: 12px; }
  .price-table td { font-size: 18px; }
  /* Scrolling sideways, descriptions would push the prices off screen; they return once a vehicle is chosen */
  [data-picks]:not(.has-pick) .pt-desc { display: none; }
  [data-picks].has-pick .price-table tbody th { width: auto; }
  .pt-hint { display: block; }
}
.pt-hint { display: none; margin: 0 0 10px; text-align: center; font-size: 14px; color: var(--muted); }
[data-picks].has-pick .pt-hint { display: none; }
.pt-detailing {
  max-width: 760px; margin: 28px auto 0; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 3px solid var(--c); display: flex; flex-direction: column;
}
.pt-detailing h3 {
  margin: 0; background: var(--c); color: #fff; padding: 12px 16px;
  font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 19px;
}
.pt-detailing h3 span { font-weight: 400; font-style: normal; text-transform: none; font-size: 14px; margin-left: 6px; opacity: .9; }
.pt-detailing table { width: calc(100% - 32px); margin: 8px 16px 12px; border-collapse: collapse; }
.pt-detailing th, .pt-detailing td { padding: 9px 6px; border-bottom: 1px dotted var(--line); font-size: 15px; }
.pt-detailing th { text-align: left; font-weight: 600; }
.pt-detailing td { text-align: right; font-weight: 900; font-size: 19px; white-space: nowrap; }
.pt-detailing .from { font-size: 12px; font-weight: 400; color: var(--muted); }
.pt-detailing .btn { margin: 4px 16px 16px; }
