/* Modulpro – statisk versjon av Lovable-siden (ingen byggesteg nødvendig) */

:root {
  --background: oklch(0.985 0.003 250);
  --foreground: oklch(0.18 0.03 250);
  --card: oklch(1 0 0);
  --primary: oklch(0.24 0.045 255);
  --primary-foreground: oklch(0.98 0.003 250);
  --secondary: oklch(0.94 0.01 250);
  --muted-foreground: oklch(0.45 0.02 250);
  --accent: oklch(0.3916 0.1162 256.74);
  --destructive: oklch(0.55 0.22 27);
  --border: oklch(0.88 0.01 250);
  --input: oklch(0.92 0.01 250);
  --deep-navy: oklch(0.18 0.04 255);
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-hero: 'Montserrat', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset (tilsvarer Tailwind v4 preflight) ---------- */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-size: inherit; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: inherit; }
ul { list-style: none; }
img, svg, iframe { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
strong { font-weight: bolder; }
button, input, textarea { font: inherit; letter-spacing: inherit; color: inherit; border-radius: 0; background-color: transparent; opacity: 1; }
button { cursor: default; }
textarea { resize: vertical; }
::placeholder { opacity: 1; color: color-mix(in oklab, currentColor 50%, transparent); }

/* ---------- Felles ---------- */
.container { margin-inline: auto; max-width: 80rem; padding-inline: 1rem; }
@media (min-width: 48rem) { .container { padding-inline: 2rem; } }
.page { display: flex; min-height: 100vh; flex-direction: column; }
.page main { flex: 1; }
.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.font-display { font-family: var(--font-display); }
.text-accent { color: var(--accent); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: var(--background); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; }
.site-header .logo { display: flex; align-items: center; gap: .75rem; }
.site-header .logo img { height: 2.5rem; width: auto; }
.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-desktop a {
  font-size: .875rem; line-height: 1.25rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted-foreground); transition: color .15s var(--ease);
}
@media (hover: hover) { .nav-desktop a:hover { color: var(--foreground); } }
.menu-btn { padding: .5rem; color: var(--foreground); }
.menu-btn .icon { width: 1.5rem; height: 1.5rem; }
.menu-btn .i-close { display: none; }
.site-header.open .menu-btn .i-open { display: none; }
.site-header.open .menu-btn .i-close { display: block; }
.nav-mobile { display: none; border-top: 1px solid var(--border); background: var(--background); }
.site-header.open .nav-mobile { display: block; }
.nav-mobile a {
  display: block; padding: 1rem 1.5rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); color: var(--foreground);
}
@media (min-width: 48rem) {
  .site-header .logo img { height: 3rem; }
  .nav-desktop { display: flex; }
  .menu-btn, .site-header.open .nav-mobile { display: none; }
}

/* ---------- Seksjoner ---------- */
.section { padding-block: 4rem; }
.section.pt-0 { padding-top: 0; }
.section.bg-secondary { background: var(--secondary); }
.section-head { margin-bottom: 2.5rem; max-width: 48rem; }
.eyebrow { margin-bottom: .75rem; font-size: .75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .25em; color: var(--accent); }
.section-title { font-family: var(--font-display); font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--foreground); }
@media (min-width: 40rem) { .section-title { font-size: 1.875rem; line-height: 2.25rem; } }
@media (min-width: 48rem) {
  .section { padding-block: 6rem; }
  .section.pt-0 { padding-top: 0; }
  .section-title { font-size: 3rem; line-height: 1; }
}
.more-link { display: inline-block; margin-top: 2rem; font-size: .875rem; line-height: 1.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--deep-navy); text-underline-offset: 4px; }
@media (hover: hover) { .more-link:hover { text-decoration: underline; } }
.more-wrap { margin-top: 2rem; }
.more-wrap .more-link { margin-top: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; min-height: 64vh; align-items: flex-end; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .shade {
  position: absolute; inset: 0;
  background-image: linear-gradient(to top in oklab,
    color-mix(in oklab, var(--deep-navy) 95%, transparent) 0%,
    color-mix(in oklab, var(--deep-navy) 60%, transparent) 50%,
    color-mix(in oklab, var(--deep-navy) 20%, transparent) 100%);
}
.hero .inner { position: relative; width: 100%; padding-block: 4rem; }
.hero h1 {
  max-width: 56rem; font-family: var(--font-hero); font-size: 1.875rem; line-height: 1.15; font-weight: 800;
  color: var(--primary-foreground); filter: drop-shadow(0 4px 4px rgb(0 0 0 / 0.15));
}
.hero p { margin-top: 1.25rem; max-width: 42rem; font-size: 1rem; line-height: 1.5rem; color: color-mix(in oklab, var(--primary-foreground) 80%, transparent); }
.hero .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-light, .btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem;
  font-size: .75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
}
.btn-light { background: var(--primary-foreground); color: var(--deep-navy); }
.btn-light .icon { width: 1rem; height: 1rem; }
.btn-ghost { border: 1px solid color-mix(in oklab, var(--primary-foreground) 40%, transparent); color: var(--primary-foreground); }
@media (hover: hover) {
  .btn-light:hover { background: color-mix(in oklab, var(--primary-foreground) 90%, transparent); }
  .btn-ghost:hover { background: color-mix(in oklab, var(--primary-foreground) 10%, transparent); }
}
@media (min-width: 48rem) {
  .hero { min-height: 72vh; }
  .hero .inner { padding-block: 6rem; }
  .hero h1 { font-size: 3rem; }
}

/* ---------- Tjenestekort ---------- */
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service-card { display: block; border: 1px solid var(--border); background: var(--card); padding: 2rem; transition: border-color .15s var(--ease); }
@media (hover: hover) { .service-card:hover { border-color: var(--deep-navy); } }
.service-card .icon { width: 2rem; height: 2rem; color: var(--accent); }
.service-card h3 { margin-top: 1.5rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--foreground); }
.service-card p { margin-top: .75rem; font-size: .875rem; line-height: 1.625; color: var(--muted-foreground); white-space: pre-line; }

/* ---------- Kunder ---------- */
.dark-band { background: var(--deep-navy); color: var(--primary-foreground); }
.clients { padding-block: 4rem; }
.clients h2 { margin-top: .75rem; font-family: var(--font-display); font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; }
.clients .logos { margin-top: 3rem; display: grid; align-items: center; gap: 3rem; }
.clients .logos > div { display: flex; align-items: center; justify-content: center; padding-block: 1rem; }
.clients .logos img { width: auto; object-fit: contain; opacity: .9; }
.clients .banenor { height: 2.5rem; }
.clients .ous { height: 3rem; filter: brightness(0) invert(1); }
@media (min-width: 40rem) { .clients .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }
@media (min-width: 48rem) { .clients { padding-block: 5rem; } .clients h2 { font-size: 2.25rem; line-height: 2.5rem; } }

/* ---------- Galleri ---------- */
.gallery { display: grid; gap: .5rem; }
.gallery figure { position: relative; overflow: hidden; }
.gallery img { width: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery.home img { height: 100%; aspect-ratio: 4 / 3; }
.gallery.full img { height: 18rem; }
@media (hover: hover) {
  .gallery.home img:hover, .gallery.full figure:hover img { transform: scale(1.05); }
}
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem;
  background-image: linear-gradient(to top in oklab, color-mix(in oklab, var(--deep-navy) 90%, transparent), transparent);
  font-size: .75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--primary-foreground);
}
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 48rem) { .gallery.home { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .gallery.full { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Prosess ---------- */
.step { border: 1px solid var(--border); background: var(--background); padding: 2rem; }
.step .n { font-family: var(--font-display); font-size: 3rem; line-height: 1; font-weight: 700; color: var(--accent); }
.step h3 { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: var(--foreground); }
.step p { margin-top: .75rem; font-size: .875rem; line-height: 1.625; color: var(--muted-foreground); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stack-6 > * + * { margin-top: 1.5rem; }
.contact-info { font-size: .875rem; line-height: 1.25rem; }
.contact-info > li + li { margin-top: 1rem; }
.contact-info li { display: flex; align-items: flex-start; gap: .75rem; }
.contact-info .icon { margin-top: .125rem; width: 1.25rem; height: 1.25rem; color: var(--accent); }
@media (hover: hover) { .contact-info a:hover { text-decoration: underline; } }
.map { overflow: hidden; border: 1px solid var(--border); }
.map iframe { width: 100%; }

.form > * + * { margin-top: 1.25rem; }
.form .two { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .form .two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form label.lbl { margin-bottom: .375rem; display: block; font-size: .75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; border: 1px solid var(--input); background: var(--background); padding: .75rem 1rem;
  font-size: .875rem; line-height: 1.25rem; color: var(--foreground);
}
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: 2px solid transparent; outline-offset: 2px; }
.form .consent { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.form .consent input { margin-top: .125rem; width: 1rem; height: 1rem; flex: none; cursor: pointer; accent-color: var(--deep-navy); }
.form .consent a { color: var(--deep-navy); text-decoration: underline; text-underline-offset: 2px; }
@media (hover: hover) { .form .consent a:hover { color: var(--accent); } }
.form .err { margin-top: .25rem; font-size: .75rem; line-height: 1rem; color: var(--destructive); }
.form .err:empty { display: none; }
.btn-dark {
  display: inline-block; background: var(--deep-navy); padding: .75rem 1.5rem; font-size: .75rem; line-height: 1rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--primary-foreground); transition: background-color .15s var(--ease);
}
.btn-dark:disabled { opacity: .6; }
@media (hover: hover) { .form .btn-dark:hover { background: color-mix(in oklab, var(--primary) 90%, transparent); } }
.form .status { font-size: .875rem; line-height: 1.25rem; }
.form .status.ok { color: var(--foreground); }
.form .status.bad { color: var(--destructive); }
.form .status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Sideheader (undersider) ---------- */
.page-header { background: var(--deep-navy); color: var(--primary-foreground); }
.page-header .container { padding-block: 5rem; }
.page-header .eyebrow { margin-bottom: 0; color: color-mix(in oklab, var(--primary-foreground) 60%, transparent); }
.page-header h1 { margin-top: .75rem; max-width: 48rem; font-family: var(--font-display); font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; }
@media (min-width: 48rem) { .page-header .container { padding-block: 7rem; } .page-header h1 { font-size: 3.75rem; line-height: 1; } }

/* ---------- Tjenester-side ---------- */
.services-list > * + * { margin-top: 5rem; }
.service { display: grid; gap: 2.5rem; border-top: 1px solid var(--border); padding-top: 4rem; }
@media (min-width: 48rem) { .service { gap: 4rem; } }
.service .num { font-family: var(--font-display); font-size: 3.75rem; line-height: 1; font-weight: 700; color: var(--accent); }
.service h2 { margin-top: 1rem; font-family: var(--font-display); font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; color: var(--foreground); }
.service .long { font-size: 1.125rem; line-height: 1.625; color: var(--foreground); }
.service ul { margin-top: 2rem; display: grid; gap: .75rem; }
@media (min-width: 40rem) { .service ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service li { display: flex; align-items: flex-start; gap: .625rem; font-size: .875rem; line-height: 1.25rem; color: var(--foreground); }
.service li .icon { margin-top: .125rem; width: 1rem; height: 1rem; color: var(--accent); flex: initial; }
.service .btn-dark { margin-top: 2rem; }
@media (hover: hover) { .service .btn-dark:hover { background: var(--foreground); } }

/* ---------- Om oss ---------- */
.about { display: grid; gap: 3rem; }
.about .text { font-size: 1.125rem; line-height: 1.625; color: var(--foreground); }
.about .text > * + * { margin-top: 1.25rem; }
.about .facts { border-left: 2px solid var(--accent); padding-left: 1.5rem; }
.about .facts > li + li { margin-top: 1.5rem; }
.about .facts li { display: flex; align-items: flex-start; gap: 1rem; }
.about .facts .icon { width: 1.5rem; height: 1.5rem; color: var(--deep-navy); }
.about .facts .t { font-family: var(--font-display); font-size: 1rem; line-height: 1.5rem; font-weight: 700; color: var(--foreground); }
.about .facts .d { font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.approvals { margin-top: 3.5rem; border-top: 1px solid var(--border); padding-top: 2.5rem; }
.approvals h2 { font-family: var(--font-display); font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--foreground); }
.approvals .logos { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; column-gap: 3rem; row-gap: 2rem; }
.approvals img { height: 7rem; width: auto; object-fit: contain; }
@media (min-width: 48rem) {
  .approvals { margin-top: 4.5rem; padding-top: 3rem; }
  .approvals h2 { font-size: 1.875rem; line-height: 2.25rem; }
  .approvals .logos { column-gap: 4rem; }
  .approvals img { height: 8rem; }
}

/* ---------- Personvern ---------- */
.privacy { max-width: 48rem; color: var(--foreground); }
.privacy > * + * { margin-top: 2rem; }
.privacy .lead { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.privacy section > * + * { margin-top: .75rem; }
.privacy h2 { font-family: var(--font-display); font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--foreground); }
.privacy .body { font-size: 1rem; line-height: 1.625; color: var(--foreground); }
.privacy .body > * + * { margin-top: .75rem; }
.privacy .body ul { list-style: disc; padding-left: 1.5rem; }
.privacy .body a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-navy); color: var(--primary-foreground); }
.site-footer .cols { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 48rem) { .site-footer .cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.site-footer .logo-link { margin-top: .75rem; display: inline-block; }
.site-footer .logo-link img { max-height: 5rem; width: auto; filter: brightness(0) invert(1); }
.site-footer .ghost-link { margin-top: .75rem; display: inline-block; }
.site-footer h4 { font-size: .75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: color-mix(in oklab, var(--primary-foreground) 60%, transparent); }
.site-footer ul { margin-top: .75rem; font-size: .875rem; line-height: 1.25rem; }
.site-footer ul > li + li { margin-top: .25rem; }
@media (hover: hover) { .site-footer ul a:hover { text-decoration: underline; } }
.site-footer .bottom { border-top: 1px solid color-mix(in oklab, var(--primary-foreground) 10%, transparent); padding: 1.25rem 1rem; }
@media (min-width: 48rem) { .site-footer .bottom { padding-inline: 2rem; } }
.site-footer .bottom .row {
  margin-inline: auto; max-width: 80rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .5rem;
  font-size: .75rem; line-height: 1rem; color: color-mix(in oklab, var(--primary-foreground) 50%, transparent);
}
@media (min-width: 48rem) { .site-footer .bottom .row { flex-direction: row; } }
.site-footer .bottom .credit { margin-inline: auto; margin-top: .5rem; max-width: 80rem; text-align: center; font-size: .75rem; line-height: 1rem; color: color-mix(in oklab, var(--primary-foreground) 50%, transparent); }
.site-footer .bottom .credit a { color: color-mix(in oklab, var(--primary-foreground) 70%, transparent); }
@media (hover: hover) {
  .site-footer .bottom .row a:hover { color: color-mix(in oklab, var(--primary-foreground) 80%, transparent); text-decoration: underline; }
  .site-footer .bottom .credit a:hover { color: var(--primary-foreground); text-decoration: underline; }
}

/* ---------- 404 ---------- */
.notfound { display: flex; min-height: 100vh; align-items: center; justify-content: center; background: var(--background); padding-inline: 1rem; }
.notfound .box { max-width: 28rem; text-align: center; }
.notfound h1 { font-size: 4.5rem; line-height: 1; font-weight: 700; color: var(--foreground); }
.notfound h2 { margin-top: 1rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; color: var(--foreground); }
.notfound p { margin-top: .5rem; font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.notfound a { margin-top: 1.5rem; display: inline-flex; align-items: center; justify-content: center; border-radius: calc(.25rem - 2px); background: var(--primary); padding: .5rem 1rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--primary-foreground); }
