/* PMC Bilverkstad. White page with blue bands as section separators.
   Font is self-hosted (no requests to third parties). */
@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url("fonts/outfit-latin-wght-normal.woff2") format("woff2"); }

:root {
  --blue: #0f2747;        /* THE brand blue (Blackblue): bands, buttons, icons, links */
  --blue-hi: #1d4ed8;     /* Cobalt blue: hover, links, the logo accent */
  --blue-rgb: 15, 39, 71; /* the wash over the top photo */
  --on-blue: #dde5ef;     /* body text on the blue bands */
  --tint: #f3f6fa;        /* very pale blue for quiet backgrounds */
  --tint-2: #e3eaf3;
  --paper: #ffffff;
  --ink: #0f1f2b;
  --ink-soft: #51606c;
  --line: #e2e8ed;
  --star: #fbbc04;
  --error: #a4161a;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  overflow-wrap: break-word; margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .about :focus-visible, footer :focus-visible { outline-color: #fff; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
h2::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--blue); margin-top: 0.9rem; }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 0.75rem 1rem; font-weight: 600; z-index: 10; }
.skip:focus { left: 0; color: #fff; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 54px; padding: 0 1.7rem; border: 1.5px solid var(--blue); border-radius: 999px; background: var(--blue); color: #fff; font: 500 1.08rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.btn:hover { background: var(--blue-hi); border-color: var(--blue-hi); color: #fff; }
.btn .icon { transition: transform 0.15s; }
.btn:hover .icon { transform: translateX(3px); }

/* Header (white, so the logo shows clearly) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.site-head { background: var(--paper); position: sticky; top: 0; z-index: 50; transition: box-shadow 0.2s; }
.site-head.is-stuck { box-shadow: 0 2px 16px rgba(15, 39, 71, 0.13); }
/* so anchor links don't land underneath the sticky header */
#tjanster, #om, #omdomen, #kontakt, #offert { scroll-margin-top: 92px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: 1.1rem; }
.logo { display: inline-flex; text-decoration: none; }
.logo img { height: 58px; width: auto; display: block; }
.partner { display: inline-flex; align-items: center; border-left: 1px solid var(--line); padding-left: 1.1rem; }
.partner img { height: 38px; width: auto; display: block; }
.partner-sm { display: none; align-items: center; background: #232a78; border-radius: 4px; padding: 5px 7px; margin-left: 0.2rem; }
.partner-sm .ad-mark-sm { height: 24px; width: auto; display: block; }
footer .partner { border-left-color: rgba(255, 255, 255, 0.4); background: #fff; border-radius: 8px; padding: 0.4rem 0.7rem; border-left: 0; margin-left: 0.3rem; }
footer .partner img { height: 30px; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; margin-left: auto; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn .ico-close { display: none; }
.menu-btn[aria-expanded="true"] .ico-open { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }
.top nav { display: flex; align-items: center; gap: clamp(1.05rem, 2.1vw, 2.2rem); font-size: 1.02rem; }
.top nav a.sec { white-space: nowrap; }
.top nav a { color: var(--ink); text-decoration: none; padding-block: 0.55rem; border-bottom: 2px solid transparent; }
.top nav a.sec:hover { border-bottom-color: var(--blue); color: var(--blue); }
.langs { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.top nav .langs a { padding: 0.35rem 0.85rem; border: 0; border-radius: 999px; font-weight: 500; font-size: 0.95rem; min-width: 44px; text-align: center; color: var(--ink-soft); }
.top nav .langs a[aria-current] { background: var(--blue); color: #fff; }
@media (max-width: 960px) {
  .menu-btn { display: flex; }
  .top nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column;
    align-items: stretch; gap: 0; padding: 0.4rem 0 1rem; background: var(--paper);
    border-top: 1px solid var(--line); box-shadow: 0 14px 30px rgba(15, 39, 71, 0.15); }
  .top nav.is-open { display: flex; }
  .top nav a.sec { display: block; padding: 0.95rem clamp(1.1rem, 5vw, 2rem); font-size: 1.08rem; border-bottom: 0; }
  .top nav a.sec:hover { background: var(--tint); color: var(--blue); }
  .top nav .langs { align-self: flex-start; margin: 0.7rem clamp(1.1rem, 5vw, 2rem) 0; }
}
@media (max-width: 560px) { .site-head .partner { padding-left: 0.8rem; } .site-head .partner img { height: 34px; } }
@media (max-width: 339px) { .site-head .partner { display: none; } .partner-sm { display: inline-flex; } }

/* Top section: blue band with the photo behind a blue wash */
.hero { position: relative; background: var(--blue); color: #fff; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(80% 66% at 100% 100%, rgba(5, 14, 30, 0.88) 0%, rgba(5, 14, 30, 0.66) 34%, rgba(5, 14, 30, 0.28) 62%, rgba(5, 14, 30, 0) 84%),
  linear-gradient(90deg, rgba(var(--blue-rgb), 0.94) 0%, rgba(var(--blue-rgb), 0.82) 38%, rgba(var(--blue-rgb), 0.42) 70%, rgba(var(--blue-rgb), 0.2) 100%); }
.hero-text { padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.hero-text > * { max-width: 34rem; }
.hero p.lead { margin-top: 1.5rem; font-size: 1.3rem; font-weight: 300; color: var(--on-blue); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }
.hero .btn { background: #fff; border-color: #fff; color: var(--blue); }
.hero .btn:hover { background: var(--tint-2); border-color: var(--tint-2); color: var(--blue); }
.hero .btn-outline { background: transparent; border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }
.hero .rating { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; color: #fff; font-weight: 500; text-decoration: none; }
.hero .rating:hover { text-decoration: underline; }
.hero .rating span { color: var(--star); letter-spacing: 0.1em; }
/* AD chain mark, bottom right of the hero photo */
/* AD chain badge, bottom right of the hero photo. The mark is the knockout
   version (white letterforms, red dots, no panel) so the photo reads through it. */
.hero-ad { position: absolute; right: clamp(1.5rem, 4vw, 3rem); bottom: clamp(1.5rem, 4vw, 3rem); z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.5)); }

.hero-ad .ad-mark { height: clamp(52px, 8vw, 92px); width: auto; display: block; }
.hero-ad .rule { display: block; width: 100%; height: 2px; background: #e8232a; margin: 0.85rem 0 0.7rem; }
.hero-ad b { color: #fff; font-weight: 500; font-size: 1.02rem; letter-spacing: 0.02em; white-space: nowrap; }
@media (max-width: 760px) { .hero-ad { right: 1rem; bottom: 1rem; }
  .hero-ad .ad-mark { height: 42px; } .hero-ad b { font-size: 0.8rem; } .hero-ad .rule { margin: 0.5rem 0 0.4rem; }
  /* keep the hero copy clear of the badge */
  .hero-text { padding-bottom: 8rem; } }
@media (max-width: 760px) { .hero::after { background:
  radial-gradient(95% 48% at 100% 100%, rgba(5, 14, 30, 0.72) 0%, rgba(5, 14, 30, 0.3) 48%, rgba(5, 14, 30, 0) 78%),
  rgba(var(--blue-rgb), 0.88); } }

/* Sections: generous space between them */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
#offert { background: var(--tint); }
/* Contact picks up the same pale blue so the page alternates
   navy / white / tint instead of running white into white. */
#kontakt { background: var(--tint); }
/* two large paddings meeting would leave a void, so trim the join */
#omdomen { padding-bottom: clamp(3rem, 6vw, 5rem); }
#kontakt { padding-top: clamp(3.5rem, 7vw, 6rem); }

/* Services: the most important section, so it gets large cards and illustrations */
#tjanster { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.services { list-style: none; margin: 3.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.services li { flex: 0 1 calc((100% - 3rem) / 3); min-width: 230px; padding: 2rem 1.6rem 2.1rem; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.svc-icon { display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 24px; background: var(--tint-2); color: var(--blue); }
.svc-icon svg { width: 60px; height: 60px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svc-icon .f { fill: #fff; }
.services h3 { margin-top: 1.4rem; font-size: 1.4rem; }
.services p { margin-top: 0.55rem; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 1060px) { .services li { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (max-width: 560px) {
  .services li { flex-basis: 100%; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 1.1rem; padding: 1.3rem; align-items: start; }
  .svc-icon { width: 72px; height: 72px; border-radius: 18px; grid-row: span 2; }
  .svc-icon svg { width: 48px; height: 48px; }
  .services h3 { margin-top: 0.2rem; }
}

/* Very narrow phones: the icon goes back above the text so long Swedish
   compounds ("Assistansförsäkring") have the full card width and wrap cleanly. */
@media (max-width: 380px) {
  .services li { grid-template-columns: 1fr; }
  .services .svc-icon { grid-row: auto; }
  .services h3 { margin-top: 1.1rem; }
}

/* About: blue band, photo on the left */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--blue); color: #fff; }
.about-media { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.about-text { padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 6vw, 5rem); }
.about-text > * { max-width: 32rem; }
.about-text > p { margin-top: 1.5rem; color: var(--on-blue); font-weight: 300; }
.about h2::after { background: #fff; }
.checks-list { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.8rem; }
.checks-list li { display: flex; align-items: center; gap: 0.8rem; }
.checks-list .tick { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.checks-list .tick svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-media { min-height: 260px; } }

/* Reviews: a sideways row that steps forward by itself (site.js) and can be swiped or scrolled by hand */
.reviews { margin-top: 2.5rem; padding: 0.25rem 2px 1.5rem; margin-inline: -2px; scroll-padding-inline: 2px; display: flex; gap: 1.25rem; align-items: stretch; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.reviews::-webkit-scrollbar { display: none; }
.review { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.75rem 1.75rem 1.5rem; flex: 0 0 calc((100% - 2.5rem) / 3); scroll-snap-align: start; position: relative; display: flex; flex-direction: column; }
@media (max-width: 980px) { .review { flex-basis: calc((100% - 1.25rem) / 2); } }
@media (max-width: 640px) { .review { flex-basis: 86%; } }
.review .stars { color: var(--star); letter-spacing: 0.12em; font-size: 1.15rem; }
.review blockquote { margin: 0.7rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.review figcaption { margin-top: auto; padding-top: 1rem; font-weight: 500; }
.review .more { align-self: flex-start; margin-top: 0.4rem; padding: 0.5rem 0; min-height: 44px; background: none; border: 0; color: var(--blue); font: 500 1rem var(--font); text-decoration: underline; cursor: pointer; }
.review .gicon { position: absolute; top: 1.6rem; right: 1.6rem; width: 22px; height: 22px; }
.reviews-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem; color: var(--ink-soft); margin-top: 0.5rem; }
/* Heading line carries the scroll arrows, so they never sit over a review. */
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.rev-nav-pair { display: flex; gap: 0.6rem; }
.rev-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--blue); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.15s, opacity 0.15s, border-color 0.15s; }
.rev-nav:hover { background: var(--tint); border-color: var(--blue); }
.rev-nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rev-nav[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.rev-nav[aria-disabled="true"]:hover { background: #fff; border-color: var(--line); }
@media (max-width: 560px) { .rev-nav-pair { display: none; } }
.reviews-foot .gstars { color: var(--star); letter-spacing: 0.1em; }

/* Enquiry form */
.formpanel { max-width: 860px; margin-inline: auto; }
.formpanel > p { margin-top: 1.25rem; color: var(--ink-soft); max-width: 36rem; }
form#quote { margin-top: 2.75rem; display: grid; gap: 2rem; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: end; }
.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .row, .row-3 { grid-template-columns: 1fr; } }
.field label, fieldset legend { display: block; font-weight: 500; margin-bottom: 0.5rem; padding: 0; }
.field .hint { font-weight: 400; font-size: 0.95rem; color: var(--ink-soft); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 58px; padding: 0.7rem 0.95rem; border: 1.5px solid #9aa8b3; border-radius: 12px; background: #fff; color: var(--ink); font: 400 1.125rem/1.4 var(--font); }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid #c9dfeb; outline-offset: 0; border-color: var(--blue); }
.plate { display: flex; align-items: stretch; background: #fff; border: 1.5px solid #9aa8b3; border-radius: 12px; overflow: hidden; min-height: 58px; }
.plate i { flex: 0 0 2.4rem; background: #003399; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; padding: 0.35rem 0; font-style: normal; }
.plate .eu { width: 1.25rem; height: 1.25rem; display: block; }
.plate i b { font: 600 0.9rem/1 var(--font); }
.field .plate input[type="text"] { flex: 1; min-width: 0; min-height: 0; border: 0; border-radius: 0; background: transparent; padding: 0.3rem 0.8rem; font: 600 1.5rem/1.1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; }
.field .plate input[type="text"]:focus { outline: none; }
.plate input::placeholder { color: #a9b4bd; }
.plate:focus-within { outline: 3px solid #c9dfeb; border-color: var(--blue); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.25rem 1.5rem; }
@media (max-width: 720px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checks label { display: flex; align-items: center; gap: 0.7rem; min-height: 46px; font-weight: 400; margin: 0; cursor: pointer; }
.checks input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; margin: 0; }
.more-services { align-self: center; justify-self: start; margin-top: 0; min-height: 44px; padding: 0.5rem 0; background: none; border: 0; color: var(--blue); font: 500 1.02rem var(--font); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.checks label[hidden] { display: none; }
#annat-field[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.send small { color: var(--ink-soft); font-size: 0.95rem; max-width: 30rem; }
.status { padding: 0.9rem 1.1rem; border-radius: 12px; font-weight: 500; }
.status:empty { display: none; }
.status.ok { background: #e6f4ea; color: #14401f; }
.status.err { background: #fbe6e6; color: var(--error); }
.status.note { background: #fff6cc; color: #4a3b00; }
.req { color: var(--error); }

/* Contact, opening hours and map */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 6rem); }
.contact p { margin-top: 1.25rem; color: var(--ink-soft); max-width: 26rem; }
.contact-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.9rem; font-size: 1.12rem; }
.contact-list li { display: flex; align-items: center; gap: 0.9rem; }
.contact-list .icon { color: var(--blue); width: 1.4rem; height: 1.4rem; }
.contact-list a { color: var(--ink); }
.hours { width: 100%; max-width: 24rem; margin-top: 1.75rem; border-collapse: collapse; font-size: 1.12rem; }
.hours th, .hours td { padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.map { position: relative; margin-top: clamp(2.5rem, 6vw, 4rem); height: clamp(280px, 34vw, 400px); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.9); }
.map-open { position: absolute; right: 1rem; bottom: 1rem; background: var(--blue); color: #fff; border-radius: 999px; padding: 0.6rem 1.15rem; font-weight: 500; font-size: 1rem; text-decoration: none; box-shadow: 0 2px 12px rgba(15, 39, 71, 0.28); }
.map-open:hover { background: var(--blue-hi); }
.map-note { margin-top: 0.7rem; font-size: 0.85rem; color: #6b7682; }
@media (max-width: 560px) { .map { height: 300px; } }

/* Footer: blue band */
footer { background: var(--blue); color: var(--on-blue); padding-block: 2.25rem; font-size: 0.98rem; }
footer a { color: #fff; }
footer .partner { border-left-color: rgba(255, 255, 255, 0.4); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 3rem; }
.foot .logo { background: #fff; border-radius: 12px; padding: 0.55rem 0.9rem; }
.foot .logo img { height: 46px; width: auto; display: block; }
.foot-right { text-align: right; }
@media (max-width: 620px) { .foot-right { text-align: left; } }
.powered { margin-top: 0.4rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); }
.powered a { color: inherit; text-decoration: none; font-weight: 500; }
.powered a:hover { color: #fff; text-decoration: underline; }

form small .small-2 { display: block; margin-top: 0.25rem; }

.tel-tag { color: var(--ink-soft); font-size: 0.9rem; }
