:root {
  --ink: #2b2622;
  --ink-2: #4a423b;
  --muted: #6d645b;
  --paper: #f7f3ec;
  --paper-2: #ede6da;
  --wood: #b5763a;
  --wood-dark: #8a5626;
  --line: #d9cfbf;
  --radius: 6px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 8vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--wood); outline-offset: 2px; }

/* Utkast-markering for ubekreftede felt */
.todo { background: #fff2a8; color: #3a2f00; padding: 0 .25em; border-radius: 3px; box-shadow: inset 0 -2px 0 #e0c44c; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(43, 38, 34, .96); color: #fff; backdrop-filter: blur(6px); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--wood); color: var(--wood); font-family: var(--serif); font-size: 1.25rem; border-radius: 4px; }
.brand__name { font-size: 1.05rem; letter-spacing: .01em; }
.brand__name small { font-weight: 400; opacity: .7; }

.navtoggle { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; }
.navtoggle__bars::before { top: -7px; }
.navtoggle__bars::after { top: 7px; }
.navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
.navtoggle[aria-expanded="true"] .navtoggle__bars::before { transform: translateY(7px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--ink); padding: .5rem 1.25rem 1.25rem; flex-direction: column; border-top: 1px solid rgba(255,255,255,.08); }
.nav.is-open { display: flex; }
.nav a { padding: .8rem 0; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav a:hover { color: #f0c995; }
.nav__cta { color: #f0c995; font-weight: 600; }

@media (min-width: 800px) {
  .navtoggle { display: none; }
  .nav { display: flex; position: static; flex-direction: row; gap: 1.75rem; padding: 0; background: none; border: 0; align-items: center; }
  .nav a { border: 0; padding: .4rem 0; }
  .nav__cta { border: 1.5px solid var(--wood) !important; padding: .45rem 1rem !important; border-radius: var(--radius); }
}

/* Hero */
.hero { position: relative; min-height: min(88svh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,14,.15) 0%, rgba(20,17,14,.55) 45%, rgba(20,17,14,.92) 100%); }
.hero__content { position: relative; padding-top: 6rem; padding-bottom: 3rem; }
.hero .lead { max-width: 34em; color: #efe7dc; }
.hero .todo { color: #3a2f00; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
@media (min-width: 800px) {
  .hero { align-items: center; }
  .hero__shade { background: linear-gradient(90deg, rgba(20,17,14,.92) 0%, rgba(20,17,14,.7) 45%, rgba(20,17,14,.1) 100%); }
  .hero__content { padding-top: 4rem; padding-bottom: 4rem; }
}

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: #f0c995; margin-bottom: .75rem; }
.eyebrow--dark { color: var(--wood-dark); }
.lead { font-size: 1.15rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.btn--primary { background: var(--wood); color: #fff; }
.btn--primary:hover { background: var(--wood-dark); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* Sections */
.section { padding: 4rem 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #f3ece2; }
.section__intro { color: var(--muted); max-width: 38em; }
@media (min-width: 800px) { .section { padding: 6rem 0; } }

/* Services */
.services { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.service p { color: var(--ink-2); margin: 0; }
.service__icon { width: 44px; height: 44px; fill: none; stroke: var(--wood); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(4, 1fr); } }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.filter { min-height: 44px; padding: .5rem 1.1rem; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; font: inherit; font-size: .95rem; cursor: pointer; }
.filter:hover { border-color: var(--wood); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; grid-auto-flow: dense; }
.gallery li { aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.gallery li[hidden] { display: none; }
.gallery a { display: block; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.04); }
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
}
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

/* About */
.about { display: grid; gap: 2rem; align-items: center; }
.about__img { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; }
.checks li { padding-left: 1.75rem; position: relative; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--wood); border-bottom: 2.5px solid var(--wood); transform: rotate(-45deg); }
@media (min-width: 800px) { .about { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }

/* Contact */
.contact { display: grid; gap: 2rem; }
.contact .lead { color: #d9cfc2; max-width: 30em; }
.contact__list { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.12); }
.contact__list > div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact__list dt { color: #b9ad9f; }
.contact__list dd { margin: 0; font-weight: 600; text-align: right; }
@media (min-width: 800px) { .contact { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }

/* Footer */
.footer { background: #1f1b18; color: #b9ad9f; font-size: .9rem; padding: 1.5rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.footer p { margin: 0; }
.footer strong { color: #f3ece2; }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15,12,10,.96); color: #fff; }
.lightbox::backdrop { background: rgba(15,12,10,.9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 3.5rem .75rem 1rem; max-width: 100%; max-height: 100%; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 8rem); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox__cap { font-size: .95rem; color: #d9cfc2; text-align: center; max-width: 40em; }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: .5rem; }
.lb-next { right: .5rem; }
@media (max-width: 699px) {
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .lightbox__fig { padding-bottom: 5rem; }
  .lightbox__img { max-height: calc(100dvh - 11rem); }
}

/* Bad: før/etter */
.service--feature { display: grid; gap: 1.25rem; }
.service--feature .service__head p { max-width: 40em; }
.ba { display: grid; gap: 1.25rem; }
.ba__pair { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ba__pair figcaption { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); }
.ba__item { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.ba__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ba__item:hover img { transform: scale(1.04); }
.ba__tag { position: absolute; left: .5rem; top: .5rem; background: rgba(43,38,34,.88); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 3px; }
.ba__tag--after { background: var(--wood); }
@media (min-width: 640px) { .service--feature { grid-column: 1 / -1; } .ba { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .service--feature { grid-template-columns: 1fr 2.2fr; gap: 2.5rem; align-items: start; } }
