/* Enviro Rørservice landingsside v2. Merkevarefarger fra logopakken (Logos.zip 2ebf5927).
   Hovedfarge marine #1B1848, aksent #594DFF, gradient #372BAB til #7D91FF. */
/* LT Superior, profilfonten til Enviro Gruppen (Branding/fonts.zip 2c3e5234eb76793f).
   Bare vektene som brukes: 300 overskrifter, 400 brødtekst, 600 små titler og knapper. */
@font-face { font-family: "LT Superior"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/ltsuperior-light-webfont.woff2") format("woff2"); }
@font-face { font-family: "LT Superior"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ltsuperior-regular-webfont.woff2") format("woff2"); }
@font-face { font-family: "LT Superior"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ltsuperior-semibold-webfont.woff2") format("woff2"); }

:root {
  --rs-color-navy: #1B1848;
  --rs-color-accent: #594DFF;
  --rs-color-accent-dark: #4233CD;
  --rs-color-grad-1: #372BAB;
  --rs-color-grad-2: #7D91FF;
  --rs-color-grad-3: #9DACFF;

  --rs-color-bg: #ffffff;
  --rs-color-surface: #F3F3FA;
  --rs-color-text: #1B1848;
  --rs-color-body: #24224A;
  --rs-color-muted: #4A4870;
  --rs-color-border: #DCDCEB;
  --rs-color-action: var(--rs-color-accent);
  --rs-color-action-text: #ffffff;
  --rs-color-action-hover: var(--rs-color-accent-dark);
  --rs-color-focus: var(--rs-color-accent);
  --rs-color-on-dark: #ffffff;
  --rs-color-on-dark-muted: #D9DCFF;

  --rs-gradient: linear-gradient(135deg, var(--rs-color-navy) 0%, var(--rs-color-grad-1) 100%);
  --rs-gradient-line: linear-gradient(90deg, var(--rs-color-grad-1), var(--rs-color-accent), var(--rs-color-grad-2), var(--rs-color-grad-3));

  --rs-font: "LT Superior", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rs-space-1: 0.5rem;
  --rs-space-2: 1rem;
  --rs-space-3: 1.5rem;
  --rs-space-4: 2.5rem;
  --rs-space-5: 4rem;
  --rs-radius: 10px;
  --rs-max: 68rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--rs-color-bg);
  color: var(--rs-color-body);
  font-family: var(--rs-font);
  font-size: 1.0625rem;
  line-height: 1.5;
  padding-bottom: 5rem; /* plass til ringelinja på mobil */
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0 0 var(--rs-space-2); color: var(--rs-color-text); hyphens: auto; overflow-wrap: anywhere; }
/* Profilmanualen: overskrifter Light med tett linjeavstand, liten tittel Semibold */
h1, h2 { font-weight: 300; line-height: 1.08; }
h3 { font-weight: 600; line-height: 1.3; }
h1 { font-size: clamp(2.25rem, 7.5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1875rem; }
p { margin: 0 0 var(--rs-space-2); }

a { color: var(--rs-color-accent-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--rs-color-navy); }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--rs-color-focus);
  outline-offset: 3px;
}

.wrap { max-width: var(--rs-max); margin: 0 auto; padding: 0 var(--rs-space-2); }
.wrap.narrow { max-width: 44rem; }

.skip {
  position: absolute; left: var(--rs-space-2); top: -4rem;
  background: var(--rs-color-navy); color: var(--rs-color-on-dark);
  padding: 0.75rem 1rem; border-radius: var(--rs-radius); z-index: 10;
}
.skip:focus { top: var(--rs-space-1); color: var(--rs-color-on-dark); }

/* Toppfelt */
.site-header { background: var(--rs-color-bg); border-bottom: 1px solid var(--rs-color-border); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--rs-space-2); min-height: 4.25rem;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 34px; width: auto; }

/* Knapp */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  flex-wrap: wrap; text-align: center;
  min-height: 52px; padding: 0.75rem 1.5rem;
  background: var(--rs-color-action); color: var(--rs-color-action-text);
  border-radius: var(--rs-radius); font-weight: 600; font-size: 1.125rem;
  text-decoration: none;
}
.btn:hover { background: var(--rs-color-action-hover); color: var(--rs-color-action-text); }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }

/* Seksjoner */
section { padding: var(--rs-space-4) 0; }
.alt { background: var(--rs-color-surface); }

/* Hero: marine med gradient. Knappen er aksent med hvit tekst (5,3:1). */
.hero {
  background-color: var(--rs-color-navy); /* vises hvis gradienten ikke lastes */
  background-image: var(--rs-gradient);
  color: var(--rs-color-on-dark);
  padding: var(--rs-space-4) 0 var(--rs-space-5);
  position: relative;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--rs-gradient-line);
}
.hero h1 { color: var(--rs-color-on-dark); }
.lead { font-size: 1.1875rem; max-width: 38rem; }
.hero .lead { color: var(--rs-color-on-dark); }
.hero .btn { width: 100%; margin-top: var(--rs-space-1); }
/* Hovedknappen i hero: fylt hvit med marine tekst (15,6:1), tydeligste flate i hero */
.btn-hero { background: #ffffff; color: var(--rs-color-navy); font-size: 1.1875rem; min-height: 56px; box-shadow: 0 6px 20px rgba(10, 8, 40, 0.35); }
.btn-hero:hover { background: #EEF0FF; color: var(--rs-color-navy); }
.subtitle { font-size: clamp(1.25rem, 3.5vw, 1.5rem); font-weight: 400; color: var(--rs-color-on-dark); margin: -0.25rem 0 var(--rs-space-2); }
.hero .btn:focus-visible { outline-color: var(--rs-color-on-dark); }
.hero-note { margin-top: var(--rs-space-2); color: var(--rs-color-on-dark-muted); font-size: 1rem; }

.eyebrow {
  display: block; margin-bottom: var(--rs-space-1);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rs-color-accent-dark);
}

.services { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--rs-space-2); }
.services li {
  min-width: 0;
  background: var(--rs-color-bg); border: 1px solid var(--rs-color-border);
  border-top: 4px solid var(--rs-color-accent);
  border-radius: var(--rs-radius); padding: var(--rs-space-3);
}
.services p { margin: 0; color: var(--rs-color-muted); }

.hero-grid { display: grid; gap: var(--rs-space-3); align-items: center; }
.hero-text { min-width: 0; }

.values { list-style: none; padding: 0; margin: var(--rs-space-3) 0 0; display: grid; gap: var(--rs-space-2); }
.values li { min-width: 0; padding-left: var(--rs-space-3); position: relative; }
.values li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 0.75rem; height: 0.75rem;
  border-radius: 50%; background: var(--rs-color-accent);
}
.values strong { color: var(--rs-color-text); }

.group { margin-top: var(--rs-space-3); padding: var(--rs-space-3); border-radius: var(--rs-radius); background: var(--rs-color-surface); }
.group p:last-child { margin-bottom: 0; }

.facts { padding-left: 1.25rem; margin: 0; }
.facts li { margin-bottom: var(--rs-space-1); }

.contact { display: grid; gap: var(--rs-space-3); }
.contact > * { min-width: 0; }
.contact address { font-style: normal; }
.contact dl { margin: 0; display: grid; gap: var(--rs-space-1); }
.contact dt { font-weight: 600; color: var(--rs-color-text); }
.contact dd { margin: 0 0 var(--rs-space-1); }

/* Frittstående lenker får minst 44 px klikkflate */
.contact dd a, .back { display: inline-flex; align-items: center; min-height: 44px; }

/* Bunntekst: marine med negativ logo */
.site-footer { background: var(--rs-color-navy); color: var(--rs-color-on-dark-muted); padding: var(--rs-space-4) 0 var(--rs-space-3); font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--rs-space-1) var(--rs-space-3); align-items: center; }
.site-footer .footer-logo { flex-basis: 100%; margin-bottom: var(--rs-space-1); }
.site-footer .footer-logo img { display: block; height: 30px; width: auto; }
.site-footer a { color: var(--rs-color-on-dark); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--rs-color-grad-3); }
.site-footer a:focus-visible { outline-color: var(--rs-color-on-dark); }

/* Ringelinje, bare mobil */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 0.625rem var(--rs-space-2) calc(0.625rem + env(safe-area-inset-bottom));
  background: var(--rs-color-bg); border-top: 1px solid var(--rs-color-border);
}
.callbar .btn { width: 100%; }


@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .brand img { height: 40px; }
  section { padding: var(--rs-space-5) 0; }
  .hero { padding: var(--rs-space-5) 0; }
  .hero .btn { width: auto; }
    .services { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .callbar, .skip,   body { padding-bottom: 0; }
  .hero { background: none; color: #000; }
}

/* Lange e-postadresser ved stor tekst, og klikkflater i kontaktlister */
.contact dl, .contact dd { min-width: 0; }
.contact dd a, .site-footer a, .contact-list a { overflow-wrap: anywhere; max-width: 100%; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }

/* Spørsmål og svar */
.faq { display: grid; gap: var(--rs-space-1); }
.faq details { border: 1px solid var(--rs-color-border); border-radius: var(--rs-radius); background: var(--rs-color-bg); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--rs-space-2); min-height: 56px; padding: 0.75rem var(--rs-space-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--rs-color-accent-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 3px solid var(--rs-color-focus); outline-offset: 2px; border-radius: var(--rs-radius); }
.faq summary h3 { margin: 0; font-size: 1.0625rem; }
.faq-answer { padding: 0 var(--rs-space-3) var(--rs-space-2); }
.faq-answer ol { margin: 0 0 var(--rs-space-2); padding-left: 1.25rem; }
.faq-answer li { margin-bottom: var(--rs-space-1); }
.faq-answer a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }

/* Fet tekst bruker Semibold, så vi ikke laster Bold */
strong, b { font-weight: 600; }

/* Linjelengde: høyst ca. 70 tegn i avsnitt */
main p { max-width: 34rem; }

/* ============ PR #17: profesjonelt uttrykk (inspirasjon: nod-rorlegger.no) ============ */

/* Fast toppfelt med ankerlenker */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.97); }
.header-row { display: flex; align-items: center; gap: var(--rs-space-2); min-height: 4.25rem; }
.header-row .brand { margin-right: auto; }
.nav-desktop { display: none; gap: 0.25rem; }
.nav-desktop a, .nav-mobile nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem;
  color: var(--rs-color-text); text-decoration: none; font-weight: 400; border-radius: 6px;
}
.nav-desktop a:hover, .nav-mobile nav a:hover { background: var(--rs-color-surface); color: var(--rs-color-text); }
.btn-header { display: none; min-height: 44px; font-size: 1rem; padding: 0.5rem 1.1rem; }
.nav-mobile { position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem;
  border: 1px solid var(--rs-color-border); border-radius: var(--rs-radius); font-weight: 600; color: var(--rs-color-text);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary:focus-visible { outline: 3px solid var(--rs-color-focus); outline-offset: 2px; }
.nav-mobile nav {
  position: absolute; right: 0; top: calc(100% + 0.5rem); width: max-content; min-width: min(13rem, calc(100vw - 2rem)); max-width: calc(100vw - 2rem); padding: 0.5rem;
  display: grid; background: var(--rs-color-bg); border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius); box-shadow: 0 12px 30px rgba(27, 24, 72, 0.15);
}
section[id], main [id] { scroll-margin-top: 5rem; }

/* Hero: plass til fullbredde foto under marineblått overlegg.
   Foto legges inn som <picture class="hero-photo">. Uten foto vises bare gradienten. */
.hero { overflow: hidden; isolation: isolate; }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(27, 24, 72, 0.9) 0%, rgba(27, 24, 72, 0.86) 100%);
}
.hero-grid { display: grid; gap: var(--rs-space-4); align-items: center; }
.hero-text { min-width: 0; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 4.25rem); }
.hero h1 .accent { color: var(--rs-color-grad-3); } /* #9DACFF: 7,7:1 mot marine, 4,6:1 mot #372BAB */
.hero-actions { display: grid; gap: 0.75rem; margin-top: var(--rs-space-3); }
.hero .btn { width: 100%; margin-top: 0; }
.btn-hero { justify-content: flex-start; padding: 0.75rem 1.5rem; text-align: left; }
.btn-text { display: grid; line-height: 1.2; }
.btn-sub { font-weight: 400; font-size: 1rem; }
.btn-ghost { background: transparent; color: var(--rs-color-on-dark); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--rs-color-on-dark); }
.btn-ico { width: 1.25rem; height: 1.25rem; flex: none; }
.hero-facts { list-style: none; padding: 0; margin: var(--rs-space-3) 0 0; display: grid; gap: 0.5rem; color: var(--rs-color-on-dark); font-size: 1rem; }
.hero-facts li { display: flex; align-items: center; gap: 0.6rem; }
.hero-facts .ico { width: 1.375rem; height: 1.375rem; flex: none; color: var(--rs-color-grad-3); }

/* Faktakort i hero (desktop) */
.hero-card {
  display: none; min-width: 0; background: var(--rs-color-bg); color: var(--rs-color-body);
  border-radius: 14px; padding: var(--rs-space-3); box-shadow: 0 20px 50px rgba(10, 8, 40, 0.35);
}
.hero-card-title { font-size: 1.25rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin-bottom: var(--rs-space-2); }
.chips { list-style: none; padding: 0; margin: 0 0 var(--rs-space-2); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--rs-color-surface); border: 1px solid var(--rs-color-border); color: var(--rs-color-text); font-size: 0.9375rem; }
.hero-card-area { display: flex; gap: 0.75rem; align-items: flex-start; margin: var(--rs-space-2) 0 0; padding-top: var(--rs-space-2); border-top: 1px solid var(--rs-color-border); }
.hero-card-area .ico { width: 1.5rem; height: 1.5rem; flex: none; color: var(--rs-color-accent-dark); margin-top: 0.1rem; }
.hero-card-area strong { color: var(--rs-color-text); }

/* Tjenester med enhetlige linjeikoner */
.svc-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem;
  border-radius: 12px; background: var(--rs-color-surface); color: var(--rs-color-accent-dark); margin-bottom: var(--rs-space-2);
}
.svc-ico .ico { width: 1.6rem; height: 1.6rem; }
.services li { border-top: 1px solid var(--rs-color-border); }
.services li:hover { border-color: var(--rs-color-accent); }

/* Slik jobber vi */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--rs-space-2); counter-reset: steg; }
.steps li { min-width: 0; position: relative; padding: var(--rs-space-3); border-radius: var(--rs-radius); background: var(--rs-color-surface); }
.steps p { margin: 0; color: var(--rs-color-muted); }
.step-no {
  display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; margin-bottom: var(--rs-space-2);
  border-radius: 50%; background: var(--rs-color-navy); color: var(--rs-color-on-dark); font-weight: 600;
}

/* Flytende ring-knapp, bare desktop (mobil har ringelinja) */
.fab-call {
  display: none; position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 15;
  align-items: center; gap: 0.5rem; min-height: 52px; padding: 0 1.25rem; border-radius: 999px;
  background: var(--rs-color-accent); color: #ffffff; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 30px rgba(27, 24, 72, 0.35);
}
.fab-call:hover { background: var(--rs-color-accent-dark); color: #ffffff; }
.fab-call:focus-visible { outline: 3px solid var(--rs-color-navy); outline-offset: 3px; }

@media (min-width: 640px) {
  .hero-actions { grid-template-columns: auto auto; justify-content: start; }
  .hero .btn { width: auto; }
  .hero-facts { grid-auto-flow: column; justify-content: start; gap: var(--rs-space-3); }
}
@media (min-width: 768px) {
  .fab-call { display: inline-flex; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
  .btn-header { display: inline-flex; }
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .hero-card { display: block; }
  .steps { grid-template-columns: repeat(4, 1fr); }
}
@media print { .fab-call, .nav-mobile, .nav-desktop { display: none; } }
.alt .group { background: var(--rs-color-bg); border: 1px solid var(--rs-color-border); }

/* Hero-foto: overlegget er tettest der teksten står */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
@media (min-width: 1024px) {
  .hero::before { background: linear-gradient(100deg, rgba(27, 24, 72, 0.95) 0%, rgba(27, 24, 72, 0.9) 45%, rgba(27, 24, 72, 0.62) 75%, rgba(55, 43, 171, 0.55) 100%); }
}
/* Om oss med foto */
.om-grid { display: grid; gap: var(--rs-space-4); align-items: start; }
.om-text { min-width: 0; }
.om-foto { margin: 0; }
.om-foto img { display: block; width: 100%; height: auto; border-radius: 14px; }
@media (min-width: 1024px) { .om-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.om-text .values { grid-template-columns: 1fr; }
