:root {
  --ink: #1E3A50;
  --ink-2: #27485F;
  --line-dark: #4B6A82;
  --ground: #F4F6F8;
  --white: #FFFFFF;
  --muted: #4A5866;
  --muted-light: #C9D4DE;
  --line: #DCE3E9;
  --field: #98A6B3;
  --accent: #E8A93C;
  --accent-hover: #D9972A;
  --display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--ground); }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.1; letter-spacing: -0.5px; }
p { margin: 0; }
section[id] { scroll-margin-top: 90px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); }
.muted-light { color: var(--muted-light); }
.small { font-size: 14px; }
.lead { font-size: 19px; }
.kicker { font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.kicker-accent { color: var(--accent); }
.h-lg { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); }
.h-xl { font-weight: 800; font-size: clamp(32px, 4.2vw, 48px); }
.h-xxl { font-weight: 800; font-size: clamp(36px, 5vw, 56px); }

.ph { background-color: #E3E7EA; background-image: repeating-linear-gradient(135deg, rgba(30,58,80,0.06) 0 2px, transparent 2px 14px); }

/* Knapper */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; border-radius: 8px; border: 0; text-decoration: none; font-family: var(--body); font-weight: 700; cursor: pointer; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--ink); }
.btn-sm { padding: 12px 22px; border-radius: 6px; font-size: 16px; }
.btn-xl { font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: 1px; padding: 22px 40px; border-radius: 10px; box-shadow: 0 8px 20px rgba(232,169,60,0.35); }
.btn-outline-light { color: var(--ground); border: 2px solid var(--line-dark); padding: 22px 28px; font-weight: 600; font-size: 18px; }
.btn-outline-light:hover { color: var(--white); border-color: var(--muted-light); }
.btn-outline { border: 2px solid var(--ink); background: var(--white); color: var(--ink); padding: 0 20px; font-weight: 600; }
.btn-dark { background: var(--ink); color: var(--ground); font-family: var(--display); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: 1px; min-height: 64px; padding: 0 32px; }
.btn-dark:hover { background: var(--ink-2); }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 44px; height: 44px; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.logo-text { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-weight: 600; font-size: 16px; }
.main-nav a:not(.btn) { text-decoration: none; padding: 10px 0; }
.main-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { background: var(--ground); padding-bottom: 56px; }
.hero-banner { width: 100%; height: auto; max-height: 820px; object-fit: cover; object-position: center top; }
.hero-card { position: relative; margin-top: -120px; background: var(--ink); color: var(--ground); border-radius: 16px; padding: 44px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; box-shadow: 0 24px 60px rgba(20, 40, 60, 0.28); }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-trades { font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; color: var(--accent); }
.hero h1 { font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); }
.hero-intro { font-size: 19px; color: var(--muted-light); max-width: 38rem; }
.hero-actions { flex: 0 1 auto; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.hero-phone { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; color: var(--ground); font-weight: 600; font-size: 18px; text-decoration: none; }
.hero-phone:hover { color: var(--accent); }

/* Fag */
.trades { background: var(--ground); }
.trades-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; padding-top: 8px; padding-bottom: 24px; }
.trade { display: flex; align-items: center; gap: 16px; }
.trade-icon { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.trade h2 { font-size: 19px; font-weight: 700; letter-spacing: 0; }
.trade p { color: var(--muted); font-size: 15px; }

/* Små / total */
.section-top { padding-top: 48px; padding-bottom: 48px; }
.section-bottom { padding-top: 48px; padding-bottom: 96px; }
.two-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card { border-radius: 14px; padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.card-light { background: var(--white); border: 1px solid var(--line); }
.card-dark { background: var(--ink); color: var(--ground); }
.card-dark .card-link { color: var(--ground); }
.card-link { margin-top: auto; align-self: flex-start; font-weight: 700; padding: 10px 0; }

/* Tjenester */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.section-head p { max-width: 30rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.service:hover { box-shadow: 0 14px 34px rgba(30,58,80,0.12); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .service { transition: none; } .service:hover { transform: none; } }
.service-img { width: 100%; height: 200px; object-fit: cover; }
.service-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.service h3 { font-weight: 700; font-size: 22px; }
.service p { color: var(--muted); font-size: 16px; }

/* 35 år */
.experience { background: var(--ink); color: var(--ground); }
.experience-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 88px; padding-bottom: 88px; }
.big-number { font-family: var(--display); font-weight: 800; line-height: 0.8; display: flex; align-items: flex-end; gap: 12px; text-transform: uppercase; }
.big-number span { font-size: clamp(130px, 16vw, 200px); color: var(--accent); letter-spacing: -6px; }
.big-number small { font-size: 40px; padding-bottom: 16px; }
.experience-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 19px; color: var(--muted-light); }
.experience-text h2 { color: var(--ground); }

/* Om oss */
.about { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about-img { flex: 1 1 420px; min-width: 0; height: 420px; border-radius: 14px; }
.about-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.checks { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-weight: 600; }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks svg { flex: none; }

/* Galleri */
.gallery-section { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 96px 0; }
.gallery-section h2 { margin-bottom: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
.filter.is-active { background: var(--ink); color: var(--ground); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tile { position: relative; display: block; height: 240px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: #E3E7EA; text-align: left; font: inherit; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tile:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } .tile:hover img { transform: none; } }
.tile-caption { position: absolute; left: 12px; bottom: 12px; right: 12px; display: inline-flex; flex-direction: column; align-items: flex-start; }
.tile-caption { width: fit-content; max-width: calc(100% - 24px); background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 4px; }
.tile-caption small { font-weight: 500; color: var(--muted); font-size: 13px; }
.tile[hidden] { display: none; }

/* Lightbox */
.lightbox { width: min(1100px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 10px; background: var(--ink); color: var(--ground); }
.lightbox::backdrop { background: rgba(10, 15, 20, 0.85); }
.lb-top { display: flex; justify-content: space-between; gap: 16px; padding: 16px 16px 8px 24px; }
.lb-top h3 { font-size: 22px; }
.lb-top p { color: var(--muted-light); margin-top: 4px; }
.lb-close { flex: none; width: 48px; height: 48px; border: 0; border-radius: 8px; background: transparent; color: var(--ground); cursor: pointer; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 16px; }
.lb-stage img { max-height: 72vh; width: auto; border-radius: 6px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(23,33,43,0.8); color: var(--ground); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-nav[hidden] { display: none; }
.lb-count { text-align: center; padding: 12px; color: var(--muted-light); font-size: 14px; }

/* Kontakt */
.contact { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; }
.contact-info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-lines { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; font-weight: 600; }
.contact-line { display: flex; gap: 12px; align-items: center; text-decoration: none; font-size: 18px; min-height: 44px; }
.contact-phone { font-size: 22px; }
.contact-form-box { flex: 1 1 520px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 40px; box-shadow: 0 14px 40px rgba(30,58,80,0.08); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; min-height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 6px; background: var(--white); color: var(--ink); }
.field textarea { padding: 12px 14px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); }
.form-error { background: #FDECEA; color: #8A1C12; border: 1px solid #F3B8B1; border-radius: 6px; padding: 12px 14px; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 40px 0; }
.thanks-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.thanks h3 { font-weight: 800; font-size: 30px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-light); }
.footer-inner { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .logo-text { color: var(--ground); font-size: 22px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-start; }
.footer-nav a { color: var(--ground); padding: 6px 0; }
.footer-nav .footer-admin { color: var(--muted-light); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 32px; }
  .hero-card { margin-top: -24px; padding: 28px 22px; border-radius: 14px; }
  .hero-actions { flex: 1 1 100%; }
  .btn-xl { font-size: 18px; padding: 18px 24px; width: 100%; }
  .main-nav { gap: 2px 16px; font-size: 15px; }
  .logo-text { font-size: 17px; }
  .card, .contact-form-box { padding: 28px 22px; }
  .section-top, .about, .contact { padding-top: 64px; padding-bottom: 64px; }
  .section-bottom { padding-bottom: 64px; }
  .gallery-section { padding: 64px 0; }
  .about-img { height: 260px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

@media (max-width: 799px) {
  .site-header { position: static; }
  section[id] { scroll-margin-top: 12px; }
}

/* Tjenestekort (bilde med tekst) */
.services-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.service-card { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--ink); text-decoration: none; box-shadow: 0 6px 18px rgba(30,58,80,0.10); transition: transform .25s ease, box-shadow .25s ease; }
.service-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30,58,80,0.22); }
.service-card:hover img { transform: scale(1.03); }
.service-card-more { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--ink); font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 999px; opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease; }
.service-card:hover .service-card-more, .service-card:focus-visible .service-card-more { opacity: 1; transform: none; }
@media (hover: none) { .service-card-more { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .service-card, .service-card img, .service-card-more { transition: none; } .service-card:hover, .service-card:hover img { transform: none; } }
.services-grid-small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* Underside */
.svc-hero { background: var(--ink); color: var(--ground); }
.svc-hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
.svc-hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.svc-hero h1 { font-weight: 800; font-size: clamp(36px, 5vw, 60px); }
.svc-hero-img { flex: 1 1 420px; min-width: 0; width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.3); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--muted-light); }
.crumbs a { color: var(--muted-light); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ground); font-weight: 600; }
.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.svc-body { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.svc-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; max-width: 46rem; }
.svc-p { font-size: 18px; color: var(--muted); }
.svc-points { flex: 1 1 320px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 14px 40px rgba(30,58,80,0.08); }
.svc-points h2 { font-size: 20px; font-weight: 800; }
.svc-points .checks { margin: 0; }
.svc-points .checks svg { color: var(--accent); }
.svc-cta { background: var(--accent); color: var(--ink); }
.svc-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.svc-cta p { font-size: 18px; margin-top: 8px; }
.svc-cta .btn-accent { background: var(--ink); color: var(--white); box-shadow: none; }
.svc-cta .btn-accent:hover { background: var(--ink-2); color: var(--white); }
.svc-others { padding-top: 80px; padding-bottom: 96px; }
.svc-others h2 { margin-bottom: 28px; }
@media (max-width: 640px) {
  .svc-hero-inner { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
  .svc-body, .svc-others { padding-top: 56px; padding-bottom: 56px; }
  .svc-points { padding: 24px; }
}
