/* VPV veoteenused – vpv.ee (rebuilt 14.11.2026 by BauHunt, docs/PARTNER_SERVICE_REQUESTS.md).
   Colours from VPV's own logo: blue wordmark, red wings, near-black. One content width per page. */
:root {
  --blue: #0b74c9;
  --blue-dark: #075a9e;
  --red: #d3171e;
  --ink: #131c21;
  --text: #24313a;
  --muted: #5b6a75;
  --line: #dde4ea;
  --soft: #f3f6f9;
  --white: #ffffff;
  --ok: #0f7a3d;
  --error: #b3121a;
  --page: min(1120px, calc(100% - 32px));
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 28, 33, 0.08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: var(--page); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 64px; }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: 0.04em; }
.brand span { display: block; font-size: 0.82rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--soft); color: var(--blue-dark); }
.nav .call { background: var(--red); color: var(--white); }
.nav .call:hover { background: #b0121a; color: var(--white); }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--ink) url("img/vpv-autopark.jpg") center 60% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 18, 24, 0.92) 0%, rgba(10, 18, 24, 0.72) 48%, rgba(10, 18, 24, 0.25) 100%); }
.hero .wrap { position: relative; padding: clamp(56px, 10vw, 110px) 0; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .tag { display: inline-block; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; color: #ffd2d4; margin-bottom: 12px; }
.hero p { font-size: 1.15rem; max-width: 48ch; color: #e7eef3; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #b0121a; color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-line:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; padding: 0; list-style: none; color: #e7eef3; font-weight: 600; }
.facts li::before { content: "✓"; color: #7cc4ff; margin-right: 8px; }

/* Sections */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section.soft { background: var(--soft); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #e8f2fb; color: var(--blue-dark); margin-bottom: 14px; }
.card .icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); flex: 1; }
.card .price { font-weight: 700; color: var(--ink); margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Price list */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 24px; }
.prices table { width: 100%; border-collapse: collapse; }
.prices caption { text-align: left; font-weight: 700; color: var(--ink); font-size: 1.1rem; padding-bottom: 10px; }
.prices th, .prices td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.prices td { text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink); padding-left: 12px; }
.note { color: var(--muted); font-size: 0.95rem; }

/* Request chat section: the chat itself is BauHunt's widget (its own styles in a shadow root). */
.request { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
/* Phone: heading and one line, then the chat at once; the steps follow it. */
@media (max-width: 900px) { .request { grid-template-columns: minmax(0, 1fr); gap: 14px; } .request > div:first-child { display: contents; } .request h2 { order: 1; margin: 0; } .request .lead { order: 2; margin: 0; } .request > div:last-child { order: 3; } .request .steps { order: 4; } .request > div:first-child > p:last-child { order: 5; } }
.request > div { min-width: 0; }
.steps { list-style: none; padding: 0; margin: 24px 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 16px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.chat-fallback { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.contact-list strong { display: block; color: var(--ink); }
.contact-list a { font-weight: 700; text-decoration: none; font-size: 1.1rem; }

/* EU */
.eu { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.eu img { width: 300px; background: var(--white); border-radius: 10px; padding: 6px; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* Footer */
.foot { background: var(--ink); color: #c9d4dc; padding: 44px 0 28px; }
.foot a { color: var(--white); }
.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.foot h2 { color: var(--white); font-size: 1rem; margin-bottom: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.foot p { margin: 0 0 6px; }
.foot .eu img { width: 240px; }
.foot .legal { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 28px; padding-top: 16px; font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Service photos (home cards) and the price list as service blocks */
.card.photo { padding: 0; overflow: hidden; }
.card.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card.photo h3 { margin: 16px 20px 6px; }
.card.photo p { margin: 0 20px 10px; }
.card.photo .price { margin-bottom: 18px; }
.services { display: grid; gap: 22px; margin: 28px 0 18px; }
.service { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 90px; }
/* Pictograms: vector, sharp at every size. */
.picto { display: grid; place-items: center; padding: 22px; background: linear-gradient(160deg, #eaf4fc 0%, #f6f9fc 100%); color: var(--blue-dark); }
.picto svg { width: min(100%, 170px); height: auto; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.picto svg .wheel { fill: #eef6fc; stroke-width: 3; }
.picto svg .wheel.small { stroke-width: 2.4; }
.service > .picto { min-height: 190px; }
.service-body { padding: clamp(18px, 3vw, 28px); }
.service-body h2 { font-size: 1.45rem; }
.service-body > p { color: var(--muted); }
.service table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; }
.service th, .service td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: top; }
.service td { text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink); padding-left: 12px; font-variant-numeric: tabular-nums; }
.service tr:last-child th, .service tr:last-child td { border-bottom: 0; }
@media (max-width: 720px) { .service { grid-template-columns: 1fr; } .service > .picto { min-height: 0; aspect-ratio: 5 / 2; } }

/* Language switch: one compact menu (current code + globe), full native names inside. */
.nav .links { display: flex; align-items: center; gap: 6px; }
.langs { position: relative; }
.langs summary { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; user-select: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: ""; width: 7px; height: 7px; margin: -3px 2px 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.langs[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.langs summary:hover, .langs[open] summary { background: var(--soft); }
.langs summary svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.langs ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 6; min-width: 190px; margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16); }
.nav .langs li a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 9px; font-weight: 600; }
.nav .langs li a small { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.nav .langs li a[aria-current="true"] { background: var(--soft); color: var(--blue-dark); }
.nav .call { display: inline-flex; align-items: center; gap: 8px; }
.menu, .bar { display: none; }
/* Phone header: logo, language, call, menu button; the links open as a full-width panel. */
@media (max-width: 860px) {
  .top .wrap { gap: 8px; min-height: 60px; position: relative; }
  .nav { gap: 8px; flex-wrap: nowrap; }
  .nav .links { display: none; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 52px; flex: none; }
  .brand > span { min-width: 0; }
  .brand strong { font-size: 0.82rem; letter-spacing: 0.02em; line-height: 1.2; }
  .brand span span { display: none; }
  .nav .call { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .nav .call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav .call svg { width: 20px; height: 20px; }
  .langs summary { height: 44px; padding: 0 12px; }
  .menu { display: block; }
  .menu summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; list-style: none; color: var(--ink); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .menu .cross, .menu[open] .bars { display: none; }
  .menu[open] .cross { display: inline; }
  .menu[open] summary { background: var(--soft); }
  .menu-panel { position: absolute; left: -16px; right: -16px; top: 100%; z-index: 6; display: grid; padding: 8px 16px 16px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 28px rgba(16, 24, 40, 0.14); }
  .nav .menu-panel a { padding: 15px 8px; border-radius: 10px; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
  .nav .menu-panel a[aria-current="page"] { color: var(--blue-dark); background: none; }
  .nav .menu-panel .menu-call { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; border: 0; border-radius: 999px; background: var(--red); color: var(--white); }
  .langs ul { right: -52px; }
  /* Service cards: photo beside the text instead of four tall cards. */
  .cards { gap: 12px; margin-top: 20px; }
  .card.photo { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 14px; align-items: center; padding-right: 14px; }
  .card.photo > a { grid-row: 1 / span 3; align-self: stretch; }
  .card.photo img { height: 100%; min-height: 116px; aspect-ratio: auto; }
  .card.photo h3 { margin: 12px 0 2px; font-size: 1.05rem; }
  .card.photo p { margin: 0 0 4px; font-size: 0.92rem; line-height: 1.4; }
  .card.photo .price { margin-bottom: 12px; }
  .section { scroll-margin-top: 70px; }
  /* Thumb bar: call and ask, hidden while the chat itself is on screen. */
  .bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.1); transition: transform 0.2s ease; }
  .bar .btn { min-height: 46px; padding: 10px 12px; }
  body { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }
/* The request on its own screen. */
.request-open { display: none; }
.request-page { padding: clamp(20px, 4vw, 44px) 0; background: var(--soft); }
.request-page .wrap { max-width: 820px; }
.request-page h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.request-chat [data-bauhunt-request] { display: block; }
@media (max-width: 860px) {
  .request-open { display: inline-flex; }
  [data-chat-inline] { display: none; }
  .request .steps, .request > div:first-child > p:last-child { order: 4; }
  body.on-request { padding-bottom: 0; }
  .on-request .request-page { padding: 0; background: var(--white); }
  .on-request .request-page .wrap { width: 100%; }
  .on-request .request-page h1, .on-request .request-page .lead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .on-request .request-chat [data-bauhunt-request] { height: calc(100dvh - 61px); }
  .on-request .foot { display: none; }
}
/* Narrow phones: the logo carries the name; the text stays for screen readers. */
@media (max-width: 520px) { .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .langs summary svg { display: none; } }
.eu-top { margin-bottom: 24px; }
.cards + .note { margin-top: 18px; }
