/* Envatec AS – stilark for MODX-malen. Legges i /assets/envatec/css/envatec.css */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --ink: #10262E;
  --ink-2: #33474E;
  --muted: #4A5F66;
  --line: #DCE3E1;
  --bg: #F4F6F5;
  --white: #FFFFFF;
  --dark: #0E2A33;
  --darker: #0B1E25;
  --dark-card: #183C47;
  --on-dark: #DCE6E9;
  --on-dark-2: #C9D6DA;
  --accent: #0B6E8A;
  --accent-hover: #08566B;
  --green: #8FD3AE;
  --green-bg: #E3EFEA;
  --forest: #123B2B;
  --forest-card: #1B4E3A;
  --link: #0B5C73;
  --radius: 10px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Source Sans 3', system-ui, sans-serif; font-size: 17px; line-height: 1.55; }
img, video { max-width: 100%; }
.photo, .card-img, .card-photo, .feature img, .logo img, .hero video, .hero .hero-img { display: block; }
a { color: var(--link); }
a:hover { color: #083F4F; }
h1, h2, h3, .display { font-family: Archivo, system-ui, sans-serif; line-height: 1.1; }
.form h2 { margin: 0; }
p { margin: 0 0 14px; }
ul { margin: 0 0 18px; padding-left: 20px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 48px 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--dark); color: var(--white); }
.section--forest { background: var(--forest); color: var(--white); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--link); margin: 0 0 12px; }
.section--dark .eyebrow, .section--forest .eyebrow, .hero .eyebrow, .band--dark .eyebrow { color: var(--green); }
.h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; margin: 0 0 18px; max-width: 780px; }
.h3 { font-size: 20px; margin: 0 0 8px; }
.lead { font-size: 20px; color: var(--ink-2); }
.section--dark .lead, .section--dark p, .hero p { color: var(--on-dark-2); }
.section--forest p { color: #CFE3D8; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* Knapper */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 24px; border-radius: 6px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-hover); color: var(--white); }
.btn--ghost { border-color: var(--on-dark-2); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn--outline { border-color: var(--link); color: var(--link); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Topp */
.topbar { background: var(--darker); color: var(--on-dark-2); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--white); text-decoration: none; margin-left: 20px; }
.header { background: var(--darker); border-top: 1px solid #1C3640; position: sticky; top: 0; z-index: 20; }
.header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 52px; width: auto; }
.header .nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 600; font-size: 16px; margin: 0; padding: 0; }
.header .nav a { color: #E6EEF0; text-decoration: none; padding: 10px 0; }
.header .nav a:hover, .header .nav a.active { color: var(--green); }
.nav-toggle { display: none; background: none; border: 2px solid #3B5862; color: var(--white); border-radius: 6px; padding: 8px 12px; font: inherit; font-weight: 600; min-height: 44px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header .nav { display: none; width: 100%; flex-direction: column; }
  .header .nav.open { display: flex; }
  .header .btn { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--darker); color: var(--white); }
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(8, 22, 28, 0.66); }
.hero .wrap { position: relative; z-index: 1; padding-top: 128px; padding-bottom: 64px; }
.hero h1.seo-h1 { font-family: 'Source Sans 3', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--green); margin: 0 0 14px; }
.hero .display { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -1.5px; margin: 0 0 22px; color: var(--white); }
.hero .lead { color: var(--on-dark); max-width: 620px; margin-bottom: 30px; }
.stats { margin-top: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: rgba(11, 30, 37, 0.8); border: 1px solid #2C4A54; border-radius: 8px; padding: 16px; }
.stat strong { display: block; font-family: Archivo, sans-serif; font-size: 24px; }
.stat span { font-size: 14px; color: var(--on-dark-2); }

/* Landingsside-topp */
.lp-hero { background: var(--dark); color: var(--white); }
.lp-hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 64px; padding-bottom: 80px; }
.lp-hero .col-text { flex: 1 1 560px; min-width: 0; }
.lp-hero .col-form { flex: 1 1 380px; min-width: 0; }
.lp-hero h1 { font-size: clamp(36px, 5vw, 54px); font-weight: 800; letter-spacing: -1.2px; margin: 0 0 20px; }
.lp-hero .lead { color: var(--on-dark); }
.crumbs { font-size: 14px; color: #9DB5BC; margin-bottom: 18px; }
.crumbs a { color: var(--on-dark-2); }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 14px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.section:not(.section--dark) .checks li::before { border-color: #2E8B57; }
.photo { width: 100%; object-fit: cover; border-radius: var(--radius); }
.photo--300 { height: 300px; }
.photo--240 { height: 240px; }

/* Rutenett og kort */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card--dark { background: var(--dark-card); border: 0; }
.card--forest { background: var(--forest-card); border: 0; }
.card--green { background: var(--green-bg); border: 0; }
.card .tag { font-size: 13px; font-weight: 700; color: var(--link); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 6px; }
.card--media { padding: 0; overflow: hidden; }
.card--media .card-body { padding: 24px; }
.card-img { height: 220px; width: 100%; object-fit: contain; background: var(--white); padding: 8px; }
.card-photo { height: 220px; width: 100%; object-fit: cover; }
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { border-color: var(--link); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pill { font-size: 13px; background: var(--green-bg); color: #1D4A36; padding: 4px 10px; border-radius: 999px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }
.feature { display: flex; flex-wrap: wrap; align-items: center; background: #10262E; color: var(--white); border-radius: 12px; overflow: hidden; }
.feature img { flex: 1 1 520px; min-width: 0; height: 380px; object-fit: cover; }
.feature .feature-text { flex: 1 1 360px; min-width: 0; padding: 32px; }
.feature p { color: var(--on-dark-2); }
.band { border-radius: 14px; padding: 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.band--dark { background: var(--dark); color: var(--white); }
.band--dark p { color: var(--on-dark-2); }
.band--green { background: var(--green-bg); }
.band > div { flex: 1 1 460px; min-width: 0; }
.steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.step { background: var(--dark-card); border-radius: var(--radius); padding: 18px; }
.step b { font-family: Archivo, sans-serif; font-size: 26px; color: var(--green); }
.brands { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 36px; }
.brands span { font-family: Archivo, sans-serif; font-weight: 700; font-size: 18px; color: #3B5058; }
.brands .label { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted); min-width: 180px; }

/* Tabell */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.table-wrap table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16px; }
.table-wrap th, .table-wrap td { padding: 14px 16px; text-align: left; vertical-align: top; }
.table-wrap thead th { background: var(--dark); color: var(--white); }
.table-wrap tbody tr { border-top: 1px solid var(--line); }
.table-wrap tbody th { font-family: Archivo, sans-serif; }

/* Spørsmål og svar */
.faq { max-width: 880px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--link); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px; margin: 0; color: var(--ink-2); }

/* Skjema */
.form { background: var(--white); color: var(--ink); border-radius: 12px; padding: 28px; display: grid; gap: 14px; border: 1px solid var(--line); }
.form h2 { font-size: 24px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px; border: 1px solid #A9B9BD; border-radius: 6px; min-height: 44px; width: 100%; background: var(--white); color: var(--ink); }
.form .row2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form .error { color: #A3261A; font-size: 14px; font-weight: 600; }
.form .hp { position: absolute; left: -9999px; }
.form .btn { width: 100%; }

/* Bunntekst */
.footer { background: var(--darker); color: #9DB5BC; font-size: 15px; }
.footer .wrap { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-top: 48px; padding-bottom: 32px; }
.footer h2 { font-size: 16px; color: var(--white); margin: 0 0 10px; }
.footer a { color: var(--on-dark-2); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer .legal { border-top: 1px solid #1C3640; }
.footer .legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .band { padding: 28px; }
  .feature img { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .hero video { display: none; } }
