/* ninamerete.no */

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/DMSans-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/DMSans-italic.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/PlayfairDisplay-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('../fonts/PlayfairDisplay-italic.woff2') format('woff2'); }

:root {
  --ink: #1c2520;
  --ink-soft: #4a554e;
  --muted: #5d6761;
  --green: #2f4a3e;
  --green-deep: #20342b;
  --sage: #e4eae3;
  --bg: #f8f5f0;
  --paper: #ffffff;
  --accent: #a3577f;
  --accent-light: #e6c3c1;
  --line: #e4ded5;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 16px;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.012em; margin: 0 0 .5em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.45rem); line-height: 1.3; }
h1 em { font-style: italic; color: var(--green); }
.nowrap { white-space: nowrap; }
h1, h2 { text-wrap: balance; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.section { padding-block: var(--section); }
.section--white { background: var(--paper); }
.section--green { background: var(--green-deep); color: #dfe7e1; }
.section--green h2, .section--green h3 { color: #fff; }

.label {
  display: block; margin-bottom: 14px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.section--green .label { color: var(--accent-light); }
.head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.head p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.section--green .head p { color: #bccbc0; }
.head--center { margin-inline: auto; text-align: center; }

.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* Knapper */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .8em 1.6em;
  font: 600 1rem/1.2 var(--sans);
  color: #fff; background: var(--green); border: 1.5px solid var(--green);
  border-radius: 999px; text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--outline { background: transparent; color: var(--green); border-color: #c9d3cb; }
.btn--outline:hover { background: transparent; color: var(--green-deep); border-color: var(--green); }
.btn--white { background: #fff; color: var(--green-deep); border-color: #fff; }
.btn--white:hover { background: #f1ebe3; border-color: #f1ebe3; color: var(--green-deep); }
.btn--sm { min-height: 44px; padding: .55em 1.25em; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 480px) { .actions .btn { width: 100%; } }

.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--green); }
.text-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* Topptekst */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 245, 240, .94); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand img { width: 132px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); }
.nav a:not(.btn) { font-size: .98rem; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--green); }
.nav .btn[aria-current="page"] { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.nav a:not(.btn)[aria-current="page"] { box-shadow: inset 0 -1.5px 0 var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .brand img { width: 116px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -10px; border: 0; background: none; cursor: pointer; color: var(--ink); }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), background-color .2s; }
  .nav-toggle span { position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { transform: translateY(-7px); }
  .nav-toggle span::after { transform: translateY(7px); }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: rotate(-45deg); }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 32px; background: var(--bg); border-top: 1px solid var(--line);
    overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
  }
  .nav-open .nav { visibility: visible; opacity: 1; }
  .nav a:not(.btn) { font-size: 1.35rem; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 24px; }
  body.nav-open { overflow: hidden; }
}

/* Hero */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); }
@media (min-width: 881px) {
  .hero--full { min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: center; padding-block: 40px 64px; }
  .hero--full .hero-photo { aspect-ratio: 4 / 5; max-height: calc(100vh - 190px); max-height: calc(100svh - 190px); min-height: 380px; }
}
@media (min-width: 881px) and (max-height: 760px) { .hero--full h1 { font-size: clamp(2.3rem, 4.2vw, 3.2rem); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { max-width: 32em; margin-bottom: 1.8rem; }
.hero-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sage); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; max-height: 460px; width: 100%; }
}

.page-hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px); }
.page-hero h1 { max-width: 16em; }
.page-hero .lead { max-width: 38em; margin: 0; }

/* Erfaring: 30 år, rolig og tydelig */
.years { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding-block: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.years-num { font-family: var(--serif); font-size: clamp(2.6rem, 4.4vw, 3.4rem); line-height: 1; color: var(--green); white-space: nowrap; }
.years-num small { display: block; margin-top: 6px; font-family: var(--sans); font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.years-text h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; margin-bottom: .35em; }
.years-text p { color: var(--ink-soft); margin: 0 0 .8rem; max-width: 44em; }
@media (max-width: 640px) { .years { grid-template-columns: 1fr; gap: 16px; } }

/* Tall */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.stat { padding: clamp(22px, 3vw, 34px) clamp(18px, 2.4vw, 30px); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value { font-family: var(--serif); font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1; color: var(--green); margin-bottom: 10px; white-space: nowrap; }
.stat-label { hyphens: auto; font-size: .95rem; line-height: 1.45; color: var(--ink-soft); margin: 0; }
@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .stat { padding: 20px 16px; }
  .stat-value { font-size: 2rem; }
  .stat-label { font-size: .88rem; }
}
@media (max-width: 350px) {
  .stat { padding: 18px 12px; }
  .stat-value { font-size: 1.7rem; }
}

.big-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 64px); }
.big-stat { border-top: 2px solid var(--green); padding-top: 24px; }
.big-stat .stat-value { font-size: clamp(3.2rem, 7vw, 5.2rem); color: var(--green); margin-bottom: 12px; }
.big-stat p { margin: 0; color: var(--ink-soft); font-size: 1.1rem; max-width: 24em; }
.big-stat .source { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.big-stat .source a { color: inherit; }
@media (max-width: 640px) { .big-stats { grid-template-columns: 1fr; } }

/* Oppsett */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.photo { border-radius: var(--radius); overflow: hidden; background: var(--sage); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ratio-portrait { aspect-ratio: 4 / 5; }
.ratio-land { aspect-ratio: 3 / 2; }
@media (max-width: 880px) { .split .ratio-portrait { aspect-ratio: 4 / 3.4; } }

/* Tjenestekort */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .25s var(--ease); }
.card:hover { border-color: #cfc6b9; transform: translateY(-3px); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sage); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.card-body p { color: var(--ink-soft); }
.card .text-link { margin-top: auto; }
.card .text-link::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 960px) and (min-width: 600px) {
  .card { flex-direction: row; }
  .card-img { flex: 0 0 38%; aspect-ratio: auto; }
}

/* Tjenesteside */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: start; padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service:nth-child(even) .service-img { order: 2; }
.service-img { position: sticky; top: 108px; }
.service .lead { margin-bottom: 1.4rem; }
@media (max-width: 880px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-img { order: 0; }
  .service-img { position: static; }
}
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 28px; }
.box h3 { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 32px; }
.checks li + li { margin-top: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='%232f4a3e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Steg */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { padding-top: 24px; border-top: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 50%; background: var(--sage); color: var(--green); font-weight: 600; font-size: .95rem; }
.steps h3 { font-size: 1.2rem; margin-bottom: .4em; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Møtemal */
.offer { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; background: var(--sage); border-radius: calc(var(--radius) * 1.5); padding: clamp(28px, 6vw, 72px); }
.offer-cover { max-width: 300px; width: 100%; margin-inline: auto; }
.offer-cover img { border-radius: 4px; box-shadow: 0 24px 48px -20px rgba(28,37,32,.45); }
.offer .checks { margin-bottom: 28px; }
@media (max-width: 880px) { .offer { grid-template-columns: 1fr; } .offer-cover { max-width: 220px; } }

.contents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: c; }
.contents div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contents div::before { counter-increment: c; content: counter(c); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; background: var(--sage); color: var(--green); font-weight: 600; font-size: .95rem; }
.contents h3 { font-size: 1.15rem; margin-bottom: .35em; }
.contents p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 880px) { .contents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .contents { grid-template-columns: 1fr; } }

.pages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.pages img { border-radius: 4px; border: 1px solid var(--line); background: #fff; }
@media (max-width: 700px) { .pages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Skjema */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.25); padding: clamp(24px, 4vw, 40px); }
.form-card h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: .35em; }
.form-card > p { color: var(--ink-soft); }
.form-note { margin: 14px 0 0; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.form-note a { color: inherit; }

.form-fallback-static { padding: 16px 18px; border-radius: 10px; background: var(--bg); margin: 0; }

/* Om */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.fact h3 { margin-bottom: .45em; }
.fact p { margin: 0; color: var(--ink-soft); }
@media (max-width: 880px) { .facts { grid-template-columns: 1fr; } }
.signature { width: 170px; margin-top: 12px; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list .icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); color: var(--green); }
.contact-list .icon svg { width: 19px; height: 19px; }
.contact-list small { display: block; font-size: .8rem; color: var(--muted); }
.contact-list a { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: clamp(1.1rem, 1.7vw, 1.3rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 13px; height: 13px; background: linear-gradient(var(--green), var(--green)) center/100% 1.5px no-repeat, linear-gradient(var(--green), var(--green)) center/1.5px 100% no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-soft); }
.faq details > div p { margin: 0; }

/* CTA */
.cta { background: var(--green-deep); color: #dfe7e1; border-radius: calc(var(--radius) * 1.5); padding: clamp(36px, 6vw, 72px); text-align: center; }
.cta h2 { color: #fff; margin-bottom: .4em; }
.cta p { color: #bccbc0; max-width: 34em; margin: 0 auto 28px; }
.cta .cta-alt { margin: 20px 0 0; font-size: .98rem; }
.cta .cta-alt a { color: #fff; font-weight: 600; }
.cta .actions { justify-content: center; }
@media (max-width: 480px) { .cta { padding: 36px 20px; } .btn { padding-inline: 1.1em; } }

/* Juridisk */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.legal-nav { position: sticky; top: 108px; font-size: .92rem; }
.legal-nav h2 { font: 600 .8rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.legal-nav ol { list-style: none; margin: 0; padding: 0; }
.legal-nav a { display: block; padding: 5px 0; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.legal-nav a:hover { color: var(--green); }
.legal-body { max-width: 760px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 56px); overflow-wrap: break-word; }
.legal-body h2 { font-size: clamp(1.35rem, 2vw, 1.65rem); margin-top: 2em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font: 600 1.05rem/1.4 var(--sans); margin-top: 1.5em; }
.legal-body ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-body li { margin-bottom: .3em; }
.legal-body address { font-style: normal; background: var(--bg); border-radius: 10px; padding: 16px 20px; margin: 0 0 1em; }
@media (max-width: 880px) { .legal { grid-template-columns: 1fr; } .legal-nav { display: none; } }

/* Bunntekst */
.site-footer { background: var(--green-deep); color: #bccbc0; padding-top: clamp(56px, 7vw, 80px); font-size: .96rem; }
.site-footer a { color: #e8eee9; text-decoration: none; }
.site-footer a:hover { color: var(--accent-light); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-grid h2 { font: 600 .8rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8fa597; margin: 0 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li + li { margin-top: 8px; }
.footer-brand img { width: 150px; margin-bottom: 16px; }
.footer-brand p { max-width: 24em; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.social a:hover { background: #fff; color: var(--green-deep); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; color: #8fa597; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-bottom a { color: #bccbc0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

.notfound { min-height: 55vh; display: grid; place-items: center; text-align: center; }
.notfound .actions { justify-content: center; }

/* Inntoning */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .legal-nav { display: none !important; } body { background: #fff; } }

/* Skjemaer (Web3Forms) */
.nform { display: grid; gap: 14px; }
.nform .field { display: grid; gap: 6px; }
.nform label { font: 600 .92rem/1.3 var(--sans); color: var(--ink); }
.nform .opt { font-weight: 400; color: var(--muted); }
.nform input[type="text"], .nform input[type="email"], .nform input[type="tel"], .nform textarea {
  width: 100%; min-height: 52px; padding: 13px 15px; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid #8b938e; border-radius: 10px; transition: border-color .2s;
}
.nform textarea { min-height: 140px; resize: vertical; }
.nform input:hover, .nform textarea:hover { border-color: var(--green); }
.nform input:focus-visible, .nform textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--green); }
.nform .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .93rem; line-height: 1.45; color: var(--ink-soft); cursor: pointer; }
.nform .check input { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; accent-color: var(--green); cursor: pointer; }
.nform .btn { width: 100%; margin-top: 4px; }
.nform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--green); font-weight: 600; }
.form-status.is-error { color: #a23b3b; }

/* Tall med kilde */
.stats-turn { margin: clamp(36px, 5vw, 56px) 0 0; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.4; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.stats-turn .text-link { font-family: var(--sans); font-size: 1rem; }

/* Jevn avstand: to vanlige seksjoner etter hverandre skal ikke doble mellomrommet */
.section:not(.section--white):not(.section--green) + .section:not(.section--white):not(.section--green) { padding-top: 0; }
.hero + .section:not(.section--white):not(.section--green) { padding-top: clamp(24px, 3vw, 40px); }
