/* Servano AS — Components */

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #FFFFFF;
  border-radius: 4px;
  padding: 16px 32px;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  white-space: nowrap;
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #FFFFFF;
  border-radius: 4px;
  padding: 16px 32px;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  white-space: nowrap;
  border: none;
}

.btn-secondary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* CTA group — flex container for action buttons */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

@media (max-width: 600px) {
  .cta-group {
    flex-direction: column;
    align-items: center;
  }
  .cta-group .btn-primary,
  .cta-group .btn-secondary {
    width: 100%;
    max-width: 320px;
  }
}

/* Navigation */
#nav-primary {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 300ms var(--ease-out), border-color 300ms;
}

#nav-primary.scrolled {
  box-shadow: 0 1px 0 var(--color-border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-symbol {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
  letter-spacing: 0.06em;
}

.nav-logo-sub {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-logo-sub-line1 {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  line-height: 1;
}

.nav-logo-sub-line2 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  text-transform: uppercase;
  line-height: 1;
}

.nav-logo-sub .sep {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  margin-right: 16px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 8px 10px;
  border-radius: 3px;
  transition: color 200ms;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links a.active {
  color: var(--color-accent);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.nav-sep {
  width: 1px;
  height: 24px;
  background: var(--color-border);
  margin: 0 8px;
  flex-shrink: 0;
}

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #FFFFFF;
  border-radius: 4px;
  padding: 10px 18px;
  min-width: 48px;
  min-height: 48px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 200ms;
}

.nav-cta:hover {
  opacity: 0.9;
}

/* Mobile døgnvakt-knapp i navbar */

.svc-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
}

/* Bilde inni tjenestekort */
.svc-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 14px 0 18px;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f3f3;
}

.svc-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.svc-card:hover .svc-card-image img {
  transform: scale(1.04);
}

/* Tilpass utsnittet på enkelte bilder */
.svc-card-image.varme img { object-position: center 45%; }
.svc-card-image.service img { object-position: center; }
.svc-card-image.sprinkler img { object-position: center; }
.svc-card-image.teknisk-rom img { object-position: center; }
.svc-card-image.utrykning img { object-position: center 40%; }
.svc-card-image.vvs img { object-position: center; }

@media (max-width: 600px) {
  /* aspect-ratio: 16/9 on .svc-card-image handles responsive sizing */
}

.svc-card-image-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-support);
  border-radius: 4px;
  color: var(--color-muted);
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.nav-vakt-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-accent);
  color: #FFFFFF;
  border-radius: 4px;
  padding: 8px 12px;
  min-height: 40px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 200ms;
}

.nav-vakt-mobile:hover {
  opacity: 0.9;
}

.nav-vakt-mobile svg {
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  flex-shrink: 0;
}

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  padding: 0 clamp(1rem, 5vw, 3rem) clamp(1rem, 5vw, 3rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
  margin-bottom: 32px;
}

.mobile-close {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-links a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: color 200ms;
}

.mobile-links a:hover {
  color: var(--color-accent);
}

.mobile-sub-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  padding: 20px 0 8px;
  border-bottom: none;
  pointer-events: none;
}

.mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #FFFFFF;
  border-radius: 4px;
  padding: 18px 32px;
  min-height: 56px;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 12px;
  text-align: center;
}

@media (max-width: 767px) {
  .nav-links,
  .nav-sep,
  .nav-cta--desktop {
    display: none;
  }

  .nav-vakt-mobile {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }
}

/* Hero */
#hero-primary {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background:
    url('../bilder/hero-bakgrunn.png') center / cover no-repeat;
  display: flex;
  align-items: center;
  margin-top: calc(-1 * var(--nav-height));
  padding: var(--nav-height) 0 0;
}









#hero-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(9, 18, 28, 0.88) 0%,
      rgba(9, 18, 28, 0.75) 35%,
      rgba(9, 18, 28, 0.30) 60%,
      rgba(9, 18, 28, 0.05) 100%
    );
  pointer-events: none;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#hero-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px clamp(1rem, 5vw, 3rem) 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-content > * {
  max-width: 580px;
}

.label-pill {
  display: inline-block;
  background: var(--color-hero-grid);
  color: var(--color-accent);
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

#hero-h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-hero-text);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  max-width: 680px;
}

.hero-logo {
  width: 72px;
  height: 72px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-hero-text);
  max-width: 560px;
  margin-bottom: 36px;
  list-style: none;
  padding: 0;
}

.hero-sub li {
  margin-bottom: 10px;
  
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  z-index: 3;
}



.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-hero-muted);
  animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.hero-stage {
  opacity: 0;
  transform: translateY(20px);
}

/* Mobil: lysere overlay over hero-bildet slik at person og rør vises tydeligere */
@media (max-width: 767px) {
  #hero-primary::after {
    background:
      linear-gradient(
        90deg,
        rgba(9, 18, 28, 0.45) 0%,
        rgba(9, 18, 28, 0.30) 35%,
        rgba(9, 18, 28, 0.05) 60%,
        transparent 100%
      );
  }
}

/* Page hero (subpages) */
.page-hero {
  position: relative;
  background:
    linear-gradient(135deg, var(--color-hero-bg-start) 0%, var(--color-hero-bg-end) 100%),
    url('../bilder/hero-bakgrunn.png') center / cover no-repeat;
  padding: 72px 0 64px;
  margin-top: calc(-1 * var(--nav-height));
  text-align: center;
  color: var(--color-hero-text);
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 1;
}

/* Keep page-hero content above the overlay */
.page-hero > * {
  position: relative;
  z-index: 2;
}

.page-hero .label-pill {
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.125rem;
  color: var(--color-hero-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.page-hero .breadcrumb {
  font-size: 0.875rem;
  color: var(--color-hero-muted);
  margin-bottom: 24px;
}

.page-hero .breadcrumb a {
  color: var(--color-hero-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Story chain — service pages (problem journey) */
#story-chain {
  background: var(--color-bg);
  padding: 80px 0;
}

.story-chain-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.story-chain-steps {
  display: flex;
  align-items: center;
}

.story-step {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 0 clamp(12px, 2vw, 24px);
}

.story-step-num {
  position: absolute;
  top: 0;
  left: clamp(12px, 2vw, 24px);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(200, 16, 46, 0.1);
  pointer-events: none;
  z-index: 0;
}

.story-step-body {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
}

.story-step-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.story-step-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.story-outcome {
  margin-top: 16px;
  margin-bottom: 0;
}

.story-outcome strong {
  color: var(--color-text);
  font-weight: 600;
}

.story-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--color-accent);
}

.story-arrow svg {
  width: 40px;
  height: 40px;
}

.deep-content-h2 {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--color-text);
}

.content-block h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

/* COMP_011 — AEO knowledge node (hidden references) */
.ai-knowledge-node {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .story-chain-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .story-step {
    padding: 0;
  }

  .story-step-num {
    left: 0;
  }

  .story-arrow {
    transform: rotate(90deg);
    align-self: center;
    padding: 0;
  }
}

/* Problem section */
#problem-section {
  background: var(--color-bg);
  padding: 96px 0;
}

.prob-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
  text-align: center;
}

.prob-overtittel {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.prob-h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
}

.prob-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 720px;
  margin: 0 auto 48px;
}

.prob-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
  text-align: left;
}

.prob-fact {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 32px 24px;
}

.prob-fact-icon {
  margin-bottom: 16px;
}

.prob-fact h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.prob-fact p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-muted);
}

/* Services grid */
#services-grid {
  background: var(--color-bg);
  padding: 96px 0;
}

.svc-h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.svc-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 300ms var(--ease-out), transform 300ms var(--ease-out);
}

.svc-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.svc-persona {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-height: 1em;
}

.svc-persona.naering { color: var(--color-accent); }
.svc-persona.privat { color: var(--color-blue); }
.svc-persona.begge { color: var(--color-muted); }

.svc-icon { flex-shrink: 0; }

.svc-card h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text);
}

.svc-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.svc-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
}

.svc-link::after {
  content: '→';
  transition: transform 200ms;
}

.svc-card:hover .svc-link::after {
  transform: translateX(4px);
}

.svc-geo {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 32px;
  line-height: 1.7;
}

/* Quality signals */
#quality-signals {
  background: var(--color-support);
  padding: 72px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.qual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1023px) {
  .qual-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .qual-grid { grid-template-columns: 1fr; }
}

.qual-item {
  text-align: center;
  padding: 32px 16px;
}

.qual-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.qual-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.qual-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 6px;
  display: block;
}

.qual-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
  display: block;
}

.qual-sub {
  font-size: 0.875rem;
  color: var(--color-muted);
  display: block;
}

/* Case section */
#case-section {
  background: var(--color-bg);
  padding: 96px 0;
}

.case-h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.case-card {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-placeholder {
  text-align: center;
  padding: 24px 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-placeholder p {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* FAQ */
#faq-section {
  background: var(--color-support);
  padding: 96px 0;
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.faq-h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  gap: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 200ms;
}

.faq-btn:hover {
  color: var(--color-accent);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--color-muted);
  transition: transform 300ms var(--ease-out);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease-out), padding-bottom 300ms var(--ease-out);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-answer a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Contact form */
#contact-form {
  background: var(--color-bg);
  padding: 96px 0;
}

.contact-h2 {
  text-align: center;
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
}

.contact-sub {
  text-align: center;
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--color-text);
  font-size: 1rem;
  transition: border-color 200ms, box-shadow 200ms;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.2);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.form-check-label {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.form-check-label a {
  color: var(--color-accent);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
}

/* ── Form status messages (EmailJS) ──────────────────────────────── */
.form-status {
  display: block;
  text-align: center;
  padding: 16px;
  margin-top: 16px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
}
.form-status--sending {
  background: var(--color-support);
  color: var(--color-muted);
}
.form-status--error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #DC2626;
}
.form-status--success {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  color: var(--color-success);
}
/* ── End form status ──────────────────────────────────────────── */

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-success);
  border-radius: 4px;
  color: var(--color-success);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.7;
}

/* Content blocks (service pages) */
.content-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 32px;
}

.content-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.content-block p {
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-block ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--color-muted);
}

.content-block li {
  margin-bottom: 6px;
}

/* Package cards */
.package-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package-card.featured {
  border-color: var(--color-accent);
  box-shadow: 0 4px 24px rgba(200, 16, 46, 0.08);
}

.package-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.package-card .package-price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
}

.package-card ul {
  list-style: none;
  padding: 0;
  flex: 1;
}

.package-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.package-card li:last-child {
  border-bottom: none;
}

.vakt-note {
  background: rgba(200, 16, 46, 0.06);
  border: 1px solid rgba(200, 16, 46, 0.25);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.vakt-note strong {
  color: var(--color-accent);
  display: block;
  margin-bottom: 6px;
}

/* Slots */
.slot-placeholder {
  min-height: 0;
}

/* Footer */
#footer-legal {
  background: var(--color-support);
  border-top: 1px solid var(--color-border);
  padding: 44px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
}

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.footer-brand-sub {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 14px;
}

@media (max-width: 767px) {
  .footer-brand-sub {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.footer-brand-sub .sep {
  color: var(--color-accent);
}

.footer-differentiator {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-geo-primary {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color 200ms;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-phone {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
  text-decoration: none;
  margin-bottom: 6px;
  transition: opacity 200ms;
}

.footer-phone:hover {
  opacity: 0.85;
}

.footer-contact-line {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-accent);
  background: transparent;
  transition: color 200ms, background 200ms;
}

.footer-social-link:hover {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.footer-social-link svg {
  width: 22px;
  height: 22px;
}

.footer-logo {
  max-width: 240px;
  height: auto;
}

.footer-logo--small {
  max-width: 90px;
  height: auto;
}

.footer-activate {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--color-accent);
  margin-top: 8px;
  transition: opacity 200ms;
}

.footer-activate:hover {
  opacity: 0.8;
}

.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-legal-links a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color 200ms;
}

.footer-legal-links a:hover {
  color: var(--color-text);
}

.footer-org {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-line {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* GDPR */
#gdpr-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 20px clamp(1rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 600ms var(--ease-out);
}

#gdpr-consent.visible {
  transform: translateY(0);
}

.gdpr-text {
  font-size: 0.875rem;
  color: var(--color-muted);
  max-width: 600px;
  line-height: 1.5;
}

.gdpr-text a {
  color: var(--color-accent);
}

.gdpr-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.gdpr-accept {
  background: var(--color-accent);
  color: #FFFFFF;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 200ms;
}

.gdpr-accept:hover {
  opacity: 0.9;
}

.gdpr-necessary {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 200ms;
}

.gdpr-necessary:hover {
  border-color: var(--color-muted);
}

/* Certification badges — hero */
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 8px;
  padding: 10px 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 250ms var(--ease-spring);
}

.cert-badge-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-badge-icon svg {
  width: 20px;
  height: 20px;
}

.cert-badge-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.cert-badge-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.cert-badge-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.2;
}

/* Næring & borettslag section */
#naering {
  background: var(--color-bg);
  padding: 96px 0;
}

.naering-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.naering-h2 {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.naering-intro {
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 720px;
  margin: 0 auto 48px;
}

.naering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.naering-col {
  background: var(--color-surface);
  padding: 32px;
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-sm);
}

.naering-col--naering {
  border-left: 4px solid var(--color-accent);
}

.naering-col--borettslag {
  border-left: 4px solid var(--color-blue);
}

.naering-col-icon {
  margin-bottom: 16px;
}

.naering-col h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.naering-col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.naering-col li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.naering-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.naering-col--borettslag li::before {
  background: var(--color-blue);
}

/* Team cards — om oss (visittkortstil) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
}

/* Venstre kolonne — logo + bildeplassholder */
.team-card-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 120px;
  width: 120px;
  flex-shrink: 0;
}

.team-logo {
  width: 100%;
  height: auto;
  max-width: 140px;
  display: block;
}

.team-photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-support);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.team-photo-placeholder span {
  font-size: 0.75rem;
  color: var(--color-muted);
  padding: 8px;
  line-height: 1.3;
}

/* Høyre kolonne — informasjon */
.team-card-info {
  flex: 1;
  min-width: 0;
  padding-left: 24px;
  border-left: 3px solid var(--color-navy);
}

.team-card-info h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.team-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 20px;
}

.team-label span + span::before {
  content: "/";
  color: var(--color-accent);
  font-weight: 700;
  margin: 0 6px;
}

/* Kontaktlinjer */
.team-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.team-contact:hover {
  color: var(--color-navy);
}

.team-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-navy);
  flex-shrink: 0;
}

.team-contact-icon svg {
  width: 14px;
  height: 14px;
  fill: #ffffff;
  display: block;
}

/* Tablet */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .team-card {
    padding: 28px;
  }

  .team-card-brand {
    min-width: 100px;
    width: 100px;
  }
}

/* Mobil */
@media (max-width: 540px) {
  .team-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    gap: 16px;
  }

      .team-card-brand {
    min-width: unset;
    width: 100%;
    max-width: 260px;
  }

  .team-logo {
    max-width: 220px;
  }

  .team-card-info {
    padding-left: 0;
    border-left: none;
    padding-top: 16px;
    border-top: 3px solid var(--color-navy);
    width: 100%;
  }

  .team-label {
    justify-content: center;
  }

  .team-contact {
    justify-content: center;
  }
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
  margin-bottom: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-border);
}

.timeline-item--current {
  color: var(--color-text);
  font-weight: 600;
}

.timeline-item--current::before {
  background: var(--color-navy);
}

.timeline-placeholder {
  font-style: italic;
  color: var(--color-muted);
}

/* Cert placeholder cards */
.cert-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.cert-placeholder-card {
  background: var(--color-support);
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Prosjekter placeholder cards */
.proj-card {
  background: var(--color-support);
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
}

.proj-card-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-border);
}

.proj-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.proj-card-sub {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Footer coverage pills */
.footer-coverage {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  margin-top: 32px;
}

.footer-coverage-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 12px;
  display: block;
}

.footer-coverage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-coverage-pill {
  background: var(--color-border);
  color: var(--color-muted);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
}

/* Hvorfor velge oss (forsiden) */
#hvorfor-velge-oss {
  background: var(--color-bg);
  padding: 64px 0;
}

.hvorfor-h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--color-text);
}

.hvorfor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.hvorfor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  transition: border-color 200ms var(--ease-out);
}

.hvorfor-item:hover {
  border-color: var(--color-accent);
}

.hvorfor-check {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Utrykning 24/7 (forsiden) */
#utrykning-247 {
  background: var(--color-support);
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.utrykning-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.utrykning-pill {
  display: inline-block;
  background: var(--color-accent);
  color: #FFFFFF;
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.utrykning-h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.utrykning-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 40px;
}

.utrykning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  text-align: left;
}

.utrykning-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  transition: border-color 200ms var(--ease-out);
}

.utrykning-item:hover {
  border-color: var(--color-accent);
}

.utrykning-item svg {
  flex-shrink: 0;
}

.utrykning-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Rammeavtaler og serviceavtaler (forsiden) */
#rammeavtaler {
  background: var(--color-bg);
  padding: 96px 0;
}

.rammeavtaler-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.rammeavtaler-h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
}

.rammeavtaler-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 40px;
}

.rammeavtaler-subh {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.rammeavtaler-body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 32px;
}

.rammeavtaler-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.rammeavtaler-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  transition: border-color 200ms var(--ease-out);
}

.rammeavtaler-item:hover {
  border-color: var(--color-accent);
}

.rammeavtaler-check {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.rammeavtaler-outro {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 32px;
}

.rammeavtaler-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hidden {
  display: none !important;
}
/* Ownership comment — always present in HTML source */

/* Mobile menu: logo + brand text on same row */
.nav-logo-text--mobile {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
}

.mobile-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
