/* Rosenborg Malerteam – demo v2 2026.
   Retning: etablert entreprenørpartner. Archivo, skarpe hjørner,
   dempet palett (kull + burgunder #94133B fra logoen), foto- og trust-tunge moduler. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
}

:root {
  --ink: #17181B;
  --ink-card: #212227;
  --ink-line: #33353B;
  --ink-soft: #54555B;
  --paper: #FFFFFF;
  --stone: #F3F2EF;
  --line: #E2E0DB;
  --wine: #94133B;
  --wine-deep: #6F0E2C;
  --rose: #CB1B51;
  --header-h: 74px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Archivo", "Segoe UI", Arial, sans-serif;
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-decoration: none; }
a:hover { color: var(--wine-deep); }
p + p { margin-top: 1em; }
:focus-visible { outline: 2.5px solid var(--wine); outline-offset: 2px; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 36px); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; font-weight: 600;
}
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.site-logo, .header-actions { position: relative; z-index: 99; }
.site-logo { flex-shrink: 0; display: flex; align-items: center; }
.site-logo img { width: 108px; height: auto; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative; display: block; padding: 26px 11px; color: var(--ink);
  font-weight: 600; font-size: 0.93rem; white-space: nowrap;
}
.site-nav a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 18px;
  height: 2px; background: var(--wine); transform: scaleX(0); transform-origin: left;
  transition: transform 0.18s ease;
}
.site-nav a:hover { color: var(--wine); }
.site-nav a:hover::after, .site-nav li.is-active > a::after { transform: scaleX(1); }
.site-nav li.is-active > a { color: var(--wine); }
.sub-toggle {
  border: 0; background: none; cursor: pointer; color: var(--ink-soft);
  padding: 4px; margin-left: -6px; line-height: 0;
}
.has-sub { position: relative; display: flex; align-items: center; }
.sub-menu {
  position: absolute; top: calc(100% - 12px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--wine);
  box-shadow: 0 18px 40px rgba(23, 24, 27, 0.12); padding: 6px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  flex-direction: column; gap: 0; display: flex;
}
.sub-menu li { width: 100%; }
.sub-menu a { padding: 10px 18px; font-weight: 500; white-space: normal; }
.sub-menu a::after { display: none; }
.sub-menu a:hover { background: var(--stone); }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.open .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; border: 0; background: none; cursor: pointer; padding: 10px;
  flex-direction: column; gap: 5px;
}
.nav-toggle-bar { width: 24px; height: 2.5px; background: var(--ink); transition: transform 0.25s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1.2; letter-spacing: 0.01em;
  cursor: pointer; transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-deep); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: #C9C6BF; }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: rgba(23, 24, 27, 0.25); color: #fff; border-color: rgba(255, 255, 255, 0.65); }
.btn-ghost:hover { background: rgba(23, 24, 27, 0.45); color: #fff; border-color: #fff; }
.btn-phone { background: var(--wine); color: #fff; padding: 11px 20px; }
.btn-phone:hover { background: var(--wine-deep); color: #fff; }

/* ---------- Hero (forside) ---------- */
.hero { position: relative; display: flex; align-items: center; height: min(calc(100svh - var(--header-h)), 760px); min-height: 540px; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.8s ease;
}
.hero-media.video-on video { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(78deg, rgba(14, 14, 16, 0.86) 0%, rgba(14, 14, 16, 0.62) 40%, rgba(14, 14, 16, 0.18) 70%, rgba(14, 14, 16, 0.08) 100%),
              linear-gradient(0deg, rgba(14, 14, 16, 0.35) 0%, rgba(14, 14, 16, 0) 30%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(48px, 7vw, 80px); color: #fff; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 0.84rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85); margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--rose); }
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.1rem); line-height: 1.04; font-weight: 800;
  letter-spacing: -0.015em; max-width: 12.5em; margin-bottom: 22px; text-wrap: balance;
}
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 36em; color: rgba(255, 255, 255, 0.92); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 26px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); }
.hero-note a { color: #fff; font-weight: 700; }

/* Nøkkeltall-bånd */
.stats-band { background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: clamp(26px, 3vw, 38px) clamp(18px, 2.5vw, 34px);
  border-left: 1px solid var(--ink-line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; white-space: nowrap; }
.stat .num span { font-size: 0.48em; font-weight: 700; color: rgba(255, 255, 255, 0.75); margin-left: 0.35em; letter-spacing: 0; }
.stat .label { margin-top: 6px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); line-height: 1.4; }

/* ---------- Seksjoner ---------- */
.section { padding-block: clamp(60px, 9vw, 104px); }
.section-warm { background: var(--stone); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--wine); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--wine); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.08rem; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row > .btn { flex-shrink: 0; margin-bottom: 4px; }

/* Tjenestekort (foto) */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(32px, 5vw, 52px); }
.service-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { border-color: #B9B5AD; box-shadow: 0 14px 34px rgba(23, 24, 27, 0.1); }
.service-card figure { overflow: hidden; }
.service-card figure img { width: 100%; aspect-ratio: 3 / 1.9; height: auto; object-fit: cover; transition: transform 0.45s ease; }
.service-card:hover figure img { transform: scale(1.04); }
.service-card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.22rem; font-weight: 700; line-height: 1.25; margin-bottom: 8px; }
.service-card h3 a { color: inherit; }
.service-card-body > p { font-size: 0.96rem; color: var(--ink-soft); margin-bottom: 18px; }
.service-link { margin-top: auto; font-weight: 700; font-size: 0.93rem; color: var(--wine); }
.service-link::after { content: " →"; }
.service-card > a.card-cover::before { content: ""; position: absolute; inset: 0; }

/* Våtrom-/sertifikatkort */
.service-card--cert { background: var(--wine); border-color: var(--wine); color: #fff; }
.service-card--cert:hover { border-color: var(--wine-deep); }
.service-card--cert .cert-top {
  padding: 26px 26px 0; display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.service-card--cert .cert-top svg { flex-shrink: 0; }
.service-card--cert h3 { color: #fff; }
.service-card--cert .service-card-body > p { color: rgba(255, 255, 255, 0.88); }
.service-card--cert .service-link { color: #fff; }

/* Videobånd */
.video-band { background: var(--ink); color: #fff; }
.video-band h2 { color: #fff; }
.video-band .section-head p { color: rgba(255, 255, 255, 0.75); }
.video-band .eyebrow { color: rgba(255, 255, 255, 0.7); }
.video-band .eyebrow::before { background: var(--rose); }
.video-frame { position: relative; max-width: 1000px; margin-inline: auto; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 1px solid var(--ink-line); }
.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; width: 100%; border: 0;
  background: linear-gradient(0deg, rgba(14, 14, 16, 0.55), rgba(14, 14, 16, 0.1));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  cursor: pointer; color: #fff; font: inherit; font-weight: 700; font-size: 1.02rem;
}
.video-play .play-dot {
  width: 78px; height: 78px; border-radius: 50%; background: var(--wine);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); transition: transform 0.2s, background 0.2s;
}
.video-play:hover .play-dot { transform: scale(1.07); background: var(--rose); }
.video-play > span:last-child { background: rgba(14, 14, 16, 0.6); padding: 8px 18px; }
.video-caption { text-align: center; margin-top: 18px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.65); }

/* Befaring / skjema */
.befaring-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.steps { list-style: none; counter-reset: steg; display: grid; gap: 20px; margin-top: 30px; }
.steps li { counter-increment: steg; display: flex; gap: 18px; align-items: flex-start; }
.steps li::before {
  content: "0" counter(steg);
  flex-shrink: 0; width: 46px; height: 46px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.steps h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 3px; }
.steps p { font-size: 0.97rem; color: var(--ink-soft); }

.form-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--wine); box-shadow: 0 16px 40px rgba(23, 24, 27, 0.07); padding: clamp(26px, 3.5vw, 40px); }
.form-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.form-card > p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 0.98rem;
  border: 1.5px solid #CFCCC5; background: #fff; color: var(--ink); border-radius: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(148, 19, 59, 0.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }
.form-note a { font-weight: 600; }
.form-card .btn { width: 100%; }

/* Privat / Næring */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.photo-card { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 440px; color: #fff; background: var(--ink); }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(6deg, rgba(14, 14, 16, 0.82) 0%, rgba(14, 14, 16, 0.35) 45%, rgba(14, 14, 16, 0.05) 72%);
}
.photo-card:hover img { transform: scale(1.03); }
.photo-card-body { position: relative; z-index: 2; padding: clamp(24px, 3.5vw, 38px); }
.photo-card .tag {
  display: inline-block; margin-bottom: 12px; padding: 5px 12px;
  background: var(--wine); color: #fff; font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.13em; text-transform: uppercase;
}
.photo-card h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; color: #fff; }
.photo-card p { color: rgba(255, 255, 255, 0.92); font-size: 0.99rem; max-width: 30em; margin-bottom: 16px; }
.photo-card .faux-link { font-weight: 700; color: #fff; }
.photo-card .faux-link::after { content: " →"; }
.photo-card > a::before { content: ""; position: absolute; inset: 0; z-index: 3; }

/* Referansebånd (mørkt, med foto) */
.ref-band { background: var(--ink); color: #fff; }
.ref-band .eyebrow { color: rgba(255, 255, 255, 0.7); }
.ref-band .eyebrow::before { background: var(--rose); }
.ref-band h2 { color: #fff; }
.ref-band .section-head p { color: rgba(255, 255, 255, 0.75); }
.refproj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 34px; }
.refproj { background: var(--ink-card); border: 1px solid var(--ink-line); display: flex; flex-direction: column; }
.refproj figure { overflow: hidden; }
.refproj figure img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; }
.refproj-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; border-top: 3px solid var(--wine); }
.refproj .num { font-size: 2.1rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.refproj .num span { font-size: 0.45em; font-weight: 700; color: rgba(255, 255, 255, 0.7); margin-left: 0.45em; letter-spacing: 0; }
.refproj .name { font-weight: 700; margin-top: 8px; line-height: 1.3; }
.refproj .meta { color: rgba(255, 255, 255, 0.62); font-size: 0.88rem; margin-top: 3px; }
.ref-more { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }
.ref-more p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; max-width: 46em; }

/* Om oss-teaser (forside) */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.about-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--wine); }
.about-checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 22px 0 26px; }
.about-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.96rem; font-weight: 600; }
.about-checks svg { flex-shrink: 0; margin-top: 6px; color: var(--wine); }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.about-actions .hg-mark img { height: 34px; width: auto; opacity: 0.85; }

/* Sertifiseringer + partnere */
.cert-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: clamp(36px, 6vw, 56px); }
.cert-card {
  background: #fff; border: 1px solid var(--line); padding: 26px 18px 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.cert-badge { height: 104px; display: flex; align-items: center; justify-content: center; }
.cert-badge img { max-height: 104px; max-width: 160px; width: auto; height: auto; }
.cert-card h3 { font-size: 0.93rem; font-weight: 700; line-height: 1.3; margin-top: auto; }
.partner-row { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: clamp(14px, 3vw, 24px); }
.partner-row img { height: 44px; width: auto; }
.partner-row .partner-hg img { height: 38px; }
.partner-row a {
  display: inline-flex; align-items: center; background: #fff;
  border: 1px solid var(--line); padding: 18px 30px;
  transition: border-color 0.2s;
}
.partner-row a:hover { border-color: #B9B5AD; }

/* ---------- Undersider ---------- */
.page-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 46px); }
.page-head h1 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 0.35em; text-wrap: balance; }
.page-head .lede { color: var(--ink-soft); font-size: clamp(1.02rem, 1.4vw, 1.14rem); max-width: 44em; }

.prose { max-width: 720px; }
.prose h1 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 0.5em; text-wrap: balance; }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0.7em 0 0.9em 1.2em; }
.prose li { margin-bottom: 0.45em; }
.content-grid { display: grid; grid-template-columns: 1fr 350px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.aside-card { background: var(--stone); border: 1px solid var(--line); border-top: 3px solid var(--wine); padding: 28px; position: sticky; top: calc(var(--header-h) + 24px); overflow: hidden; }
.aside-card .aside-img {
  width: calc(100% + 56px); max-width: none; margin: -28px -28px 22px;
  aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block;
}
.aside-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 12px; }
.aside-card ul { list-style: none; display: grid; gap: 9px; margin-bottom: 4px; }
.aside-card li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.95rem; }
.aside-card li svg { flex-shrink: 0; margin-top: 5px; color: var(--wine); }
.aside-card .btn { width: 100%; margin-top: 16px; }
.aside-card .aside-tel { display: block; text-align: center; margin-top: 12px; font-weight: 700; }

/* Referanser-side / tjenesteoversikt */
.refcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.ref-card { background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s, box-shadow 0.2s; }
.ref-card:hover { border-color: #B9B5AD; box-shadow: 0 14px 34px rgba(23, 24, 27, 0.08); }
.ref-card img { aspect-ratio: 6 / 4.2; width: 100%; height: auto; object-fit: cover; }
.ref-card-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ref-card h3 { font-size: 1.14rem; font-weight: 700; }
.ref-card h3 a { color: inherit; }
.ref-card .facts { color: var(--wine); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ref-card p.desc { font-size: 0.94rem; color: var(--ink-soft); }
.ref-card .meta { margin-top: auto; padding-top: 10px; font-size: 0.87rem; color: var(--ink-soft); }

.svc-noimg { aspect-ratio: 6 / 4.2; background: var(--ink); display: flex; align-items: center; justify-content: center; color: #fff; }

/* Tjeneste-navigasjon (forrige/neste) */
.service-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 26px; margin-top: clamp(40px, 6vw, 64px); }
.service-nav a { font-weight: 700; font-size: 0.96rem; }
.service-nav .next::after { content: " →"; }
.service-nav .prev::before { content: "← "; }

/* Tips & råd */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.anchor-nav a {
  background: #fff; border: 1.5px solid #C9C6BF; color: var(--ink);
  padding: 9px 18px; font-weight: 600; font-size: 0.92rem;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.anchor-nav a:hover { border-color: var(--wine); color: var(--wine); }
.tips-section { scroll-margin-top: calc(var(--header-h) + 20px); padding-block: clamp(38px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.tips-section:last-of-type { border-bottom: 0; }
.tips-section .prose { max-width: 760px; }
.tips-section h2 { margin-bottom: 0.6em; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 22px; }
.swatch { display: flex; gap: 13px; align-items: flex-start; background: #fff; border: 1px solid var(--line); padding: 16px; }
.swatch-dot { flex-shrink: 0; width: 40px; height: 40px; border: 1px solid rgba(23, 24, 27, 0.08); }
.swatch h3 { font-size: 0.99rem; font-weight: 700; margin-bottom: 2px; }
.swatch p { font-size: 0.88rem; color: var(--ink-soft); }

/* Galleri (om oss) */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid img { aspect-ratio: 4 / 2.7; height: auto; object-fit: cover; width: 100%; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 18px; margin-top: 26px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; }
.contact-list .c-icon {
  flex-shrink: 0; width: 46px; height: 46px;
  background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
}
.contact-list h3 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.contact-list p, .contact-list a { font-weight: 700; font-size: 1.04rem; color: var(--ink); }
.contact-list a:hover { color: var(--wine); }
.contact-list .sub { display: block; font-weight: 500; font-size: 0.88rem; color: var(--ink-soft); margin-top: 1px; }
.contact-list .sub a { font-weight: 600; font-size: 0.88rem; color: var(--wine); }

/* Footer (lys, med ekte logo) */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 52px); padding-block: clamp(46px, 6vw, 68px); }
.footer-logo img { width: 132px; height: auto; }
.footer-slogan { font-weight: 600; color: var(--ink); margin: 12px 0 14px; }
.footer-brand p { max-width: 26em; }
.footer-brand a { font-weight: 600; }
.footer-hg { display: inline-block; margin-top: 20px; opacity: 0.85; }
.footer-hg:hover { opacity: 1; }
.footer-hg img { height: 36px; width: auto; }
.footer-col h3 { color: var(--ink); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--ink-soft); font-weight: 500; }
.footer-col a:hover { color: var(--wine); }
.footer-contact li { line-height: 1.5; }
.footer-contact .strong { color: var(--ink); font-weight: 700; }
.footer-bottom { background: var(--ink); color: rgba(255, 255, 255, 0.65); font-size: 0.87rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px; }
.footer-bottom a { color: rgba(255, 255, 255, 0.85); }
.footer-bottom a:hover { color: #fff; }
.footer-docs { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.no-anim { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .photo-card img, .service-card figure img, .btn { transition: none; }
}

/* ---------- Responsivt ---------- */
@media (max-width: 1180px) {
  .site-nav {
    position: fixed; inset: 0;
    background: #fff; overflow-y: auto;
    padding: calc(var(--header-h) + 18px) 22px 40px;
    display: none; z-index: 98; margin: 0;
  }
  body.nav-open .site-nav { display: block; }
  body.nav-open { overflow: hidden; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav > ul > li:last-child { border-bottom: 0; }
  .site-nav a { font-size: 1.12rem; padding: 15px 6px; }
  .site-nav a::after { display: none; }
  .has-sub { flex-wrap: wrap; }
  .sub-toggle { display: none; }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 0 0 10px 16px; min-width: 0; width: 100%;
  }
  .sub-menu a { font-size: 1rem; padding: 8px 6px; color: var(--ink-soft); }
  .sub-menu a:hover { background: none; }
  .nav-toggle { display: flex; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .refproj-grid { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .befaring-grid, .contact-grid, .content-grid, .about-grid { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; }
  .photo-card { min-height: 340px; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 18px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
}

@media (max-width: 640px) {
  .btn-phone span { display: none; }
  .btn-phone { padding: 12px 14px; }
  .hero { min-height: 520px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-grid, .gallery-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .refproj-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
}
