/* Vest Malerservice – START demo (fiktiv bedrift). Editorial craft style, no external fonts or libraries. */
:root {
  --linen: #f4efe7; --paper: #fbf9f5; --ink: #22201c; --muted: #6a645b; --line: #ddd4c6;
  --rust: #a4502a; --rust-dark: #87401f; --deep: #2e3833; --deeper: #1f2623;
  --sand: #cdb99a; --sage: #8a9883; --slate: #4a5866;
  --wrap: 1200px; --header: 70px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gap: clamp(2.5rem, 6vw, 5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }
.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; }

/* Synlio demo bar */
.synlio-bar { background: #111; color: #cfcfcf; font-size: .8rem; line-height: 1.35; }
.synlio-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .2rem .9rem; padding-block: 7px; text-align: center; }
.synlio-bar strong { color: #fff; }
.synlio-bar a { color: #b8f0a4; font-weight: 700; text-decoration: none; white-space: nowrap; }
.synlio-bar a:hover { text-decoration: underline; }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); }
.header .wrap { height: var(--header); display: flex; align-items: center; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; white-space: nowrap; }
.logo-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.logo-name b { font-weight: 700; }
.logo-tag { margin-top: 3px; font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); }
.nav { display: flex; gap: .15rem; margin-left: auto; }
.nav a { position: relative; padding: .5rem .75rem; text-decoration: none; font-weight: 550; font-size: .95rem; color: #3b3832; }
.nav a::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .2rem; height: 2px; background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .75rem 1.4rem; border-radius: 3px; border: 1.5px solid transparent; font: inherit; font-weight: 650; font-size: .98rem; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-dark); }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--linen); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.header-cta { min-height: 42px; padding: .5rem 1rem; font-size: .92rem; }

/* Mobile menu */
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 3px; background: #fff; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .2s; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.menu[open] .burger { background: transparent; }
.menu[open] .burger::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 4px 20px 20px; box-shadow: 0 18px 30px rgba(0,0,0,.07); }
.menu-panel a:not(.btn) { display: block; padding: 13px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-size: 1.2rem; }
.menu-panel a[aria-current="page"] { color: var(--rust); }
.menu-panel .btn { width: 100%; margin-top: 16px; }

/* Shared */
.section { padding-block: var(--gap); }
.section-white { background: #fff; }
.section-linen { background: var(--linen); }
.kicker { display: flex; align-items: center; gap: .55rem; margin: 0 0 .7rem; font-size: .82rem; font-weight: 650; color: var(--muted); }
.kicker::before { content: ""; width: 14px; height: 14px; background: var(--rust); flex: 0 0 auto; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 620px; }
.head { max-width: 700px; margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.head h2 + p { margin: .8rem 0 0; color: var(--muted); }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .8rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.head-row .head { margin-bottom: 0; }
.link { display: inline-flex; align-items: center; gap: .4rem; color: var(--rust); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid transparent; }
.link::after { content: "→"; transition: transform .2s; }
.link:hover { border-color: currentColor; }
.link:hover::after { transform: translateX(3px); }
.after { margin: 1.5rem 0 0; }

/* Hero – full-bleed photo */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff; background: var(--deeper); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,18,15,.78) 0%, rgba(20,18,15,.5) 45%, rgba(20,18,15,.05) 80%); }
.hero-inner { position: relative; z-index: 2; padding-block: clamp(3rem, 8vw, 5.5rem); }
.hero .kicker { color: rgba(255,255,255,.85); }
.hero .kicker::before { background: var(--sand); }
.hero h1 { max-width: 11ch; margin-bottom: 1.1rem; }
.hero .lead { color: rgba(255,255,255,.88); margin-bottom: 1.8rem; max-width: 520px; }
.hero .btn-secondary { border-color: rgba(255,255,255,.7); color: #fff; }
.hero .btn-secondary:hover { background: #fff; color: var(--ink); }
.photo-note { position: absolute; right: 12px; bottom: 10px; z-index: 2; font-size: .7rem; color: rgba(255,255,255,.7); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.trust-band { background: var(--linen); border-bottom: 1px solid var(--line); }
.trust { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; margin: 0 auto; padding: 1.1rem 0; list-style: none; font-weight: 650; font-size: .95rem; }
.trust li { display: flex; align-items: center; gap: .6rem; }
.trust li::before { content: ""; width: 22px; height: 12px; background: var(--c, var(--rust)); }
.trust li:nth-child(2) { --c: var(--sage); } .trust li:nth-child(3) { --c: var(--slate); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { position: relative; }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; transition: filter .3s; }
.service:hover img { filter: brightness(1.05); }
.service div { padding-top: 1rem; border-top: 0; }
.service .num { display: block; margin-bottom: .3rem; font-family: var(--serif); font-style: italic; color: var(--rust); }
.service h3 { margin-bottom: .45rem; }
.service p { color: var(--muted); margin: 0; }

/* Why us */
.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.2rem; margin: 0; padding: 0; list-style: none; counter-reset: w; }
.why-list li { counter-increment: w; padding-top: .9rem; border-top: 1px solid var(--line); }
.why-list li::before { content: "0" counter(w); display: block; font-family: var(--serif); font-size: 1.8rem; line-height: 1; color: var(--rust); margin-bottom: .6rem; }
.why-list h3 { margin-bottom: .35rem; font-size: 1.2rem; }
.why-list p { margin: 0; color: var(--muted); }

/* Projects – editorial grid */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.projects-feature { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
.projects-feature .project:first-child { grid-row: span 2; }
.projects-feature .project:first-child img { aspect-ratio: 4 / 4.2; }
.project { margin: 0; }
.project a { text-decoration: none; display: block; }
.project .ph { overflow: hidden; border-radius: 2px; }
.project img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s ease; }
.project:hover img { transform: scale(1.03); }
.project figcaption { padding-top: .8rem; }
.project h3 { margin-bottom: .2rem; font-size: 1.2rem; }
.project p { margin: 0; color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; margin-bottom: .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rust); }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; }
.filters button { min-height: 40px; padding: .4rem .95rem; border: 1px solid var(--line); border-radius: 3px; background: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.project[hidden] { display: none; }

/* Process – timeline */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { position: relative; padding: 1.4rem 1.4rem 0 0; }
.steps li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--rust); }
.steps span { display: block; margin-bottom: .5rem; font-family: var(--serif); font-style: italic; color: var(--rust); }
.steps h3 { margin-bottom: .35rem; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Split & dark */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 2px; }
.split .lead { margin-bottom: 1.2rem; }
.dark { background: var(--deep); color: #f1ede6; }
.dark .kicker { color: rgba(255,255,255,.7); }
.dark .kicker::before { background: var(--sand); }
.dark .lead { color: rgba(255,255,255,.8); }
.dark .link { color: var(--sand); }

/* Example review */
.example-review { max-width: 760px; margin-inline: auto; padding: clamp(1.3rem, 3vw, 2rem); border: 1px dashed #b9ad9a; text-align: center; background: var(--paper); }
.example-review .tag { color: var(--muted); }
.example-review blockquote { margin: .3rem 0 .6rem; font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-style: italic; }
.example-review p { margin: 0; color: var(--muted); font-size: .88rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1rem, 5vw, 5rem); align-items: start; }
.faq .head { margin-bottom: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 0; font-weight: 650; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: 0 0 auto; color: var(--rust); font-size: 1.35rem; line-height: 1; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 1rem; color: var(--muted); }

/* CTA */
.cta { background: var(--rust); color: #fff; padding-block: clamp(2.2rem, 5vw, 3.8rem); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 3rem; }
.cta p { margin: .5rem 0 0; color: rgba(255,255,255,.88); font-size: 1.05rem; }
.cta .btn-light { color: var(--rust-dark); }

/* Subpages */
.page-hero { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.2rem); background: var(--linen); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-bottom: .8rem; max-width: 18ch; }
.page-hero .lead { margin-bottom: 0; }
.crumbs { margin-bottom: 1rem; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.service-rows { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 4vw, 3.5rem); align-items: center; }
.service-row:nth-child(even) .service-row-media { order: 2; }
.service-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.service-row h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .6rem; }
.service-row p { color: var(--muted); }
.service-row ul { margin: 0 0 1.2rem; padding: 0; list-style: none; }
.service-row li { padding: .35rem 0 .35rem 1.4rem; position: relative; border-bottom: 1px solid var(--line); }
.service-row li::before { content: ""; position: absolute; left: 0; top: .9rem; width: 9px; height: 9px; background: var(--sand); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.values article { padding: 1.3rem 1.5rem 0 0; }
.values h3 { margin-bottom: .4rem; }
.values p { margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.contact-info { margin: 0; padding: 0; list-style: none; }
.contact-info li { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.contact-info span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-info strong { font-size: 1.05rem; }
.demo-label { display: inline-block; margin-left: .4rem; padding: 0 .4rem; background: var(--linen); border: 1px solid var(--line); font-size: .7rem; font-weight: 700; font-style: normal; color: var(--muted); vertical-align: middle; }
.form { padding: clamp(1.2rem, 3.5vw, 2.2rem); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--rust); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .3rem; font-weight: 650; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .7rem .85rem; border: 1px solid #cfc6b7; border-radius: 3px; background: var(--paper); font: inherit; font-size: 1rem; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 3px rgba(164,80,42,.15); }
.form .btn { width: 100%; }
.form-status { margin: .9rem 0 0; font-weight: 650; }
.form-status:empty { display: none; }
.form-status[data-state="success"] { color: #2d6a3e; }
.form-status[data-state="error"] { color: #a1301f; }
.form-note { margin: .9rem 0 0; padding: .7rem .9rem; background: var(--linen); font-size: .85rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Footer with paint swatches */
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); height: 8px; }
.swatches i:nth-child(1) { background: var(--rust); } .swatches i:nth-child(2) { background: var(--sand); } .swatches i:nth-child(3) { background: var(--sage); } .swatches i:nth-child(4) { background: var(--slate); } .swatches i:nth-child(5) { background: var(--deep); }
.footer { background: var(--deeper); color: #c3c6bf; padding-top: clamp(2.2rem, 5vw, 3.5rem); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.6rem 2rem; padding-bottom: 2rem; }
.footer .logo { margin-bottom: .7rem; }
.footer .logo-name { color: #fff; }
.footer .logo-tag { color: var(--sand); }
.footer p { margin: 0; }
.footer h2 { margin-bottom: .6rem; font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: .3rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-demo { border-top: 1px solid #333c38; padding-block: 1.1rem; font-size: .83rem; color: #979d95; }
.footer-demo .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; }
.footer-demo p { margin: 0; max-width: 760px; }
.footer-demo a { color: #b8f0a4; font-weight: 700; }

/* Subtle reveal – visible without JavaScript */
.js .rv { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .project img, .nav a::after { transition: none; } }

/* Responsive */
@media (max-width: 1080px) {
  .nav a { padding: .5rem .5rem; font-size: .9rem; }
  .nav a::after { left: .5rem; right: .5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu { display: block; }
  .why, .faq, .contact-grid, .service-row, .split { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row-media { order: 0; }
  .services { grid-template-columns: 1fr 1fr; }
  .projects, .projects-feature { grid-template-columns: 1fr 1fr; }
  .projects-feature .project:first-child { grid-column: 1 / -1; grid-row: auto; }
  .projects-feature .project:first-child img { aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 1.2rem; }
  .values { grid-template-columns: 1fr; }
  .trust { justify-content: flex-start; }
}
@media (max-width: 620px) {
  :root { --header: 62px; --gap: 2.4rem; }
  body { font-size: 16px; }
  .header .wrap { height: var(--header); }
  .logo-mark { width: 34px; height: 34px; }
  .logo-name { font-size: 1.08rem; }
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(20,18,15,.25) 0%, rgba(20,18,15,.62) 40%, rgba(20,18,15,.86) 100%); }
  .hero-inner { padding-block: 9rem 2rem; }
  .actions .btn { flex: 1 1 100%; }
  .trust { flex-direction: column; gap: .45rem; padding-block: .9rem; }
  .services, .projects, .projects-feature, .why-list, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .services { gap: 1.6rem; }
  .why-list { gap: 1.1rem; }
  .projects { gap: 1.4rem; }
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); margin-left: 5px; row-gap: 1rem; }
  .steps li { padding: 0 0 0 1.3rem; }
  .steps li::before { top: .35rem; left: -6px; }
  .cta .btn, .cta .actions { flex: 1 1 100%; }
  .cta .actions { width: 100%; }
  .footer-grid { gap: 1.3rem; }
}

/* v5 – smaller gap between sections only (desktop) */
@media (min-width: 761px) { :root { --gap: clamp(2rem, 3.6vw, 3.2rem); } }
/* v6 – less space above page titles */
.page-hero { padding-top: clamp(1rem, 2.4vw, 1.8rem); }
@media (min-width: 761px) { :root { --gap: 2.2rem; } }
@media (max-width: 760px) { :root { --gap: 1.4rem; } }
/* v8 – hero text starts right under the header */
.hero { min-height: min(72vh, 640px); align-items: flex-start; }
.hero-inner { padding-block: clamp(1.6rem, 3vw, 2.4rem) clamp(2rem, 4vw, 3rem); }
@media (max-width: 760px) { .hero { min-height: 0; } .hero-inner { padding-block: 1.4rem 1.8rem; } }
/* v9 – a bit more air between sections */
@media (min-width: 761px) { :root { --gap: 3rem; } }
@media (max-width: 760px) { :root { --gap: 2rem; } }
@media (min-width: 761px) { :root { --gap: 2.6rem; } }
@media (max-width: 760px) { :root { --gap: 1.75rem; } }
