/* 3D Painting Services. One stylesheet for every page.
   Change the look here: every colour, size and radius is a token in :root. */
:root {
  /* Brand: one dark (deep green charcoal) and one accent (paint-tin marigold), on warm paper */
  --paper: #f6f3ec;     /* main ground */
  --stone: #ebe6da;     /* alternate ground */
  --ink: #17231f;       /* text, near black */
  --muted: #4d5a54;     /* labels and meta (4.5:1 on paper) */
  --brand: #14352b;     /* the one dark: logo, links, hero panel, band, footer */
  --on-brand: #f6f3ec;
  --on-brand-muted: #c6d6cf;
  --accent: #f2b31d;    /* primary button only */
  --accent-hover: #e3a40c;
  --on-accent: #17231f;
  --line: rgba(23, 35, 31, .13);
  --line-strong: rgba(23, 35, 31, .32);
  --ph-ground: #d9d6cc; /* photo frame ground while an image loads */

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 14px; --r-md: 10px; --r-sm: 6px; --r-btn: 8px;
  --nav: 72px; --gut: 80px; --padt: 112px; --padb: 96px; --bar: 0px;
  --t-h1: clamp(36px, 2.8vw + 22px, 64px);
  --t-h2: clamp(28px, 1.6vw + 20px, 44px);
  --t-h3: clamp(19px, .4vw + 17px, 22px);
  --t-lead: clamp(17px, .3vw + 15.5px, 20px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 1023px) { :root { --gut: 40px; --padt: 88px; --padb: 72px; } }
@media (max-width: 639px) {
  :root { --nav: 60px; --gut: 16px; --padt: 64px; --padb: 56px; --bar: calc(68px + env(safe-area-inset-bottom)); }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: calc(var(--nav) + 16px); -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); padding-top: var(--nav); padding-bottom: var(--bar); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: var(--t-h2); line-height: 1.1; letter-spacing: -.025em; }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(1280px + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: 52ch; }
.muted { color: var(--muted); }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { clip-path: none; width: auto; height: auto; padding: 8px 12px; background: var(--paper); z-index: 30; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.link { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-thickness .15s; }
.link:hover { text-decoration-thickness: 2px; }

/* Buttons: one filled primary (marigold), one outlined secondary */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--r-btn);
  font: 600 16px/1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background-color .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.on-brand .btn-secondary { color: var(--on-brand); border-color: rgba(246, 243, 236, .5); }
.on-brand .btn-secondary:hover { border-color: var(--on-brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav); background: var(--paper); border-bottom: 1px solid var(--line); z-index: 10; }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo__name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; line-height: 1; }
.logo__name span { display: block; font-weight: 500; font-size: 13px; letter-spacing: .01em; color: var(--muted); margin-top: 3px; }
.nav__links { display: flex; gap: 22px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__links a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 2px no-repeat; transition: background-size .2s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { background-size: 100% 2px; }
.nav__phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav__menu { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: transparent; color: var(--ink); }
@media (max-width: 1240px) {
  .nav__links { display: none; }
  .nav__phone { margin-left: auto; }
  .nav__menu { display: inline-grid; place-items: center; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; gap: 0; position: fixed; inset: var(--nav) 0 0 0; background: var(--paper); padding: 16px var(--gut); }
  .nav.is-open .nav__links a { display: block; font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 639px) {
  .nav .wrap { gap: 12px; }
  .nav__cta { display: none; }
  .logo svg { width: 34px; height: 34px; }
  .logo__name { font-size: 17px; }
  .nav__phone { font-size: 16px; }
}

/* Photo frames */
.media { position: relative; overflow: hidden; margin: 0; background: var(--ph-ground); }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .5s var(--ease); }

/* Hero: full-bleed job photo, words on a solid brand panel */
.hero { position: relative; background: var(--brand); }
.hero__media { position: absolute; inset: 0; z-index: 0; } /* own stacking context, so a real photo stays under the panel */
.hero__media .media { position: absolute; inset: 0; }
.hero__inner { position: relative; min-height: min(calc(100svh - var(--nav)), 820px); display: flex; align-items: flex-end; padding-top: 96px; padding-bottom: 64px; }
.hero__panel { background: var(--brand); color: var(--on-brand); padding: 44px 48px; border-radius: var(--r-lg); max-width: 720px; }
.hero__panel h1 { color: var(--on-brand); }
.hero__panel .lead { margin-top: 18px; color: var(--on-brand); }
.hero__panel .btn-row { margin-top: 28px; }
.hero-short .hero__inner { min-height: min(calc(78svh - var(--nav)), 680px); }
@media (max-width: 639px) {
  .hero__media { position: relative; height: 30svh; min-height: 200px; }
  .hero__panel h1 { font-size: 31px; }
  .hero__inner, .hero-short .hero__inner { min-height: 0; padding: 0; }
  .hero__panel { border-radius: 0; padding: 24px var(--gut) 28px; margin: 0; max-width: none; width: 100%; }
  .hero__panel .lead { margin-top: 10px; font-size: 16px; line-height: 1.45; }
  .hero__panel .btn-row { margin-top: 18px; gap: 10px; }
}

/* Plain page head (gallery, contact, privacy, 404) */
.pagehead { padding: 80px 0 48px; }
.pagehead .lead { margin-top: 16px; }
@media (max-width: 639px) { .pagehead { padding: 40px 0 32px; } }

/* Trust bar */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.trust li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.35; }
.trust li strong { display: block; font-size: 17px; }
.trust li span { color: var(--muted); font-size: 15px; }
.trust svg { flex: none; width: 26px; height: 26px; margin-top: 1px; }
@media (max-width: 1100px) { .trust ul { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .trust ul { grid-template-columns: repeat(2, 1fr); } .trust__quote { grid-column: 1 / -1; } }
@media (max-width: 639px) { .trust ul { gap: 16px 12px; padding-top: 20px; padding-bottom: 20px; } .trust li { font-size: 15px; } .trust li strong { font-size: 16px; } .trust li span { font-size: 14px; } }

/* Sections */
main > section { padding: var(--padt) 0 var(--padb); }
main > section.hero, main > section.trust { padding: 0; }
.section-alt { background: var(--stone); }
.head { margin-bottom: 48px; max-width: 760px; }
.head .lead { margin-top: 14px; }
@media (max-width: 639px) { .head { margin-bottom: 28px; } }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; } }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* Domestic and commercial paths */
.path { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--on-brand); background: var(--brand); transition: transform .2s var(--ease); }
.path:hover { transform: translateY(-2px); }
.path:hover .media > img { transform: scale(1.03); }
.path .media { aspect-ratio: 16 / 10; }
.path__body { padding: 28px 32px 32px; }
.path__body p { margin-top: 8px; color: var(--on-brand-muted); }
.path__go { display: inline-flex; margin-top: 20px; font-weight: 700; color: var(--accent); gap: 8px; }
.path__go::after { content: "\2192"; transition: transform .2s var(--ease); }
.path:hover .path__go::after { transform: translateX(4px); }
@media (max-width: 639px) { .path__body { padding: 22px 20px 24px; } }

/* Services grid: each card has a paint swatch */
.svc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 24px 24px; text-decoration: none; color: var(--ink); transition: transform .2s var(--ease), border-color .2s; overflow: hidden; }
a.svc:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.svc__sw { display: block; height: 10px; margin: 0 -24px 22px; background: var(--brand); }
.svc p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.svc__go { margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--brand); font-size: 15px; }
.svc-cta { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.svc-cta .svc__sw { background: var(--accent); }
.svc-cta p { color: var(--on-brand-muted); }
.svc-cta .btn { margin-top: auto; align-self: flex-start; }
.svc-cta .btn { margin-top: 20px; }

/* Before and after slider */
.ba { --pos: 50%; position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--ph-ground); touch-action: pan-y; user-select: none; }
.ba .media { position: absolute; inset: 0; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 1; }
.ba__chip { position: absolute; z-index: 3; bottom: 12px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-sm); pointer-events: none; }
.ba__chip-before { left: 12px; }
.ba__chip-after { right: 12px; background: var(--accent); color: var(--on-accent); }
.ba__handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.ba__handle::after { content: "\2039\00a0\203A"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.ba input { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba input:focus-visible ~ .ba__handle::after { outline: 3px solid var(--accent); }
.job h3 { margin-top: 16px; }
.job p { margin-top: 4px; color: var(--muted); font-size: 16px; }
.feature-ba { display: grid; grid-template-columns: 8fr 4fr; gap: 40px; align-items: center; }
@media (max-width: 899px) { .feature-ba { grid-template-columns: 1fr; gap: 24px; } }

/* Contact side column */
.contact__side { display: grid; gap: 32px; }

/* Steps and ticks */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--paper); border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; margin-bottom: 18px; }
.steps p { margin-top: 8px; font-size: 16px; }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; gap: 12px; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' stroke='%23f2b31d' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose ul { padding-left: 20px; }

/* Close band */
.band { background: var(--brand); color: var(--on-brand); }
.band h2 { color: var(--on-brand); }
.band .lead { margin-top: 14px; color: var(--on-brand); }
.band .btn-row { margin-top: 28px; }
.band__hours { margin-top: 20px; color: var(--on-brand-muted); font-size: 16px; }

/* Contact layout */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; gap: 32px; } }
.contact__facts { display: grid; gap: 20px; }
.contact__facts dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.contact__facts dd { margin: 2px 0 0; font-size: 18px; }
/* Contact block: big call and text buttons, then email */
.reach { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.reach .reach__btn { width: 100%; height: 68px; font-size: 21px; }
.reach__mail { margin-top: 6px; font-size: 18px; overflow-wrap: anywhere; }
@media (max-width: 639px) { .reach { padding: 20px; } .reach .reach__btn { height: 60px; font-size: 19px; } }

/* Single photos with an optional caption */
.shot { margin: 0; }
.shot .media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.shot figcaption { margin-top: 12px; font-weight: 600; font-size: 17px; }

/* Footer */
.footer { background: var(--brand); color: #d9ddd6; padding: 72px 0 40px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .logo { color: #fff; }
.footer .logo__name span { color: #b7c0bb; }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.footer__cols h3 { font-size: 14px; font-weight: 600; color: #b7c0bb; margin-bottom: 14px; letter-spacing: 0; }
.footer__about { margin-top: 18px; max-width: 38ch; font-size: 16px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; color: #b7c0bb; }
@media (max-width: 900px) { .footer__cols { grid-template-columns: 1fr 1fr; } .footer__cols > :first-child { grid-column: 1 / -1; } }

/* Sticky phone call bar */
.actionbar { display: none; }
@media (max-width: 639px) {
  .actionbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; inset: auto 0 0 0; z-index: 10; background: var(--paper); border-top: 1px solid var(--line); padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom)); }
  .actionbar .btn { width: 100%; min-width: 0; padding: 0 8px; height: 50px; font-size: 15px; }
  .btn-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
.footer { border-top: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 639px) {
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .svc { padding: 0 16px 18px; }
  .svc__sw { margin: 0 -16px 16px; height: 8px; }
  .svc h3 { font-size: 17px; }
  .svc p { font-size: 15px; line-height: 1.45; }
  .svc__go { display: none; }
  .svc-cta .btn { width: 100%; padding: 0 8px; font-size: 15px; }
}
[hidden] { display: none !important; }
@media (max-width: 899px) { .feature-ba > div:last-child { order: -1; } }
.nav nav { margin-left: auto; }
.footer .logo svg rect { fill: var(--paper); }
.footer .logo svg text { fill: var(--brand); }

/* Quote form, under the call and text block */
.contact__main { display: grid; gap: 24px; min-width: 0; }
.form { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 18px; }
@media (max-width: 639px) { .form { padding: 20px; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 12px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; }
.hint, .form__note { font-size: 14px; color: var(--muted); }
.form__status { font-weight: 600; color: var(--brand); }
.form h3 { font-size: var(--t-h3); }
.form .hint { margin-top: -10px; }
.field input[type="file"] { padding: 10px; background: #fff; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2317231f' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field textarea { min-height: 96px; }
.form__send { width: 100%; height: 56px; font-size: 18px; }
.form__send[disabled] { opacity: .7; cursor: progress; }
.form__status:empty { display: none; }
.form__status.is-error { color: #a1261b; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
