/* =========================================================
   Elektro Partner — Design System
   Farger og typografi styres via CSS-variabler under.
   Bytt ut --color-* verdiene for å matche endelig profil.
   ========================================================= */

:root {
  /* Brand colors — hentet fra Elektro Partners logo (#009640) */
  --navy-900: #062d17;
  --navy-800: #0a4021;
  --navy-700: #085e2d;
  --navy-600: #077e3a;
  --navy-500: #079d47;
  --amber-600: #085e2d;
  --amber-500: #009640;
  --amber-400: #49df89;
  --amber-100: #e7f8ee;

  --white: #ffffff;
  --gray-50: #f7f9fc;
  --gray-100: #eef2f7;
  --gray-200: #e1e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-600: #4b5768;
  --gray-700: #334155;
  --gray-800: #1f2937;
  --gray-900: #101820;

  --color-primary: var(--navy-700);
  --color-primary-dark: var(--navy-900);
  --color-accent: var(--navy-600);
  --color-accent-dark: var(--amber-600);
  --color-text: var(--gray-800);
  --color-text-light: var(--gray-600);
  --color-bg: var(--white);
  --color-bg-alt: var(--gray-50);

  --font-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(6, 45, 23, 0.06);
  --shadow-md: 0 8px 24px rgba(6, 45, 23, 0.1);
  --shadow-lg: 0 20px 50px rgba(6, 45, 23, 0.16);

  --container-width: 1180px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

button {
  font-family: inherit;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

.section-header {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-600);
  background: var(--amber-100);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.bg-alt {
  background: var(--color-bg-alt);
}

.text-center {
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--amber-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--gray-200);
}

.btn-secondary:hover {
  border-color: var(--navy-700);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-200);
}

.topbar {
  background: var(--navy-900);
  color: var(--gray-300);
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.topbar-links a:hover {
  color: var(--amber-400);
}

.topbar-links svg {
  width: 15px;
  height: 15px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

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

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  display: block;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.97rem;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy-900);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--amber-500);
  border-radius: var(--radius-full);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
  padding: 96px 0 110px;
}

.hero-bg {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center 35%;
  filter: blur(3px);
  transform: scale(1.02);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8, 10, 12, 0.55) 0%, rgba(4, 6, 7, 0.78) 65%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-copy .eyebrow {
  background: rgba(0, 150, 64, 0.18);
  color: var(--amber-400);
}

.hero h1 {
  color: var(--white);
}

.hero h1 .accent {
  color: var(--amber-400);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--gray-300);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--gray-200);
}

.hero-badge svg {
  width: 20px;
  height: 20px;
  color: var(--amber-400);
  flex-shrink: 0;
}

.hero-badge-link {
  text-decoration: none;
  transition: color var(--transition);
}

.hero-badge-link:hover {
  color: var(--white);
}

.hero-badge-link:hover svg {
  color: var(--amber-500);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hero-visual-logo {
  position: relative;
  width: 88%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 30px 0;
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 200px;
}

.trust-item svg {
  width: 30px;
  height: 30px;
  color: var(--amber-500);
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy-900);
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--amber-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--amber-600);
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-700);
}

.card .card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.card:hover .card-link svg {
  transform: translateX(3px);
}

/* Why-us cards on dark bg */
.why-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  color: var(--gray-200);
}

.why-card .card-icon {
  background: rgba(0, 150, 64, 0.16);
}

.why-card .card-icon svg {
  color: var(--amber-400);
}

.why-card h3 {
  color: var(--white);
}

.why-card p {
  color: var(--gray-400);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.section-dark {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark .section-header p {
  color: var(--gray-400);
}

/* ---------- Coverage area ---------- */
.coverage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.coverage-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.coverage-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-800);
}

.coverage-chip svg {
  width: 18px;
  height: 18px;
  color: var(--amber-500);
  flex-shrink: 0;
}

.coverage-map {
  position: relative;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3.4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.coverage-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  text-align: left;
  padding: 28px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--amber-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 18px;
}

.step p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--amber-500), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.cta-banner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.cta-banner .btn-secondary {
  border-color: transparent;
}

.cta-wrap {
  padding: 96px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--gray-400);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-about .logo {
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 0.92rem;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.social-links a:hover {
  background: var(--amber-500);
  color: var(--navy-900);
}

.social-links svg {
  width: 17px;
  height: 17px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--amber-400);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--amber-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a:hover {
  color: var(--amber-400);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 74px 0 64px;
  text-align: center;
}

.page-hero .eyebrow {
  background: rgba(0, 150, 64, 0.18);
  color: var(--amber-400);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--gray-300);
  max-width: 620px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--amber-400);
}

/* ---------- Services detail (tjenester.html) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail .card-icon {
  margin-bottom: 0;
}

.service-detail.featured {
  background: var(--amber-100);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  border-bottom: none;
  margin-bottom: 10px;
}

.service-detail h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--navy-800);
  color: var(--amber-400);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.service-detail p {
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ---------- Om oss (about) ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-visual {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3.6;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-visual-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78%;
}

.split-visual-logo {
  width: 100%;
  height: auto;
}

.split-visual-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  width: 100%;
}

.split-visual-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-200);
  font-weight: 600;
  font-size: 1.02rem;
  transition: color var(--transition);
}

.split-visual-contact a:hover {
  color: var(--amber-400);
}

.split-visual-contact svg {
  width: 19px;
  height: 19px;
  color: var(--amber-400);
  flex-shrink: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.stat-item {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--navy-800);
}

.stat-item span {
  font-size: 0.82rem;
  color: var(--color-text-light);
}

/* ---------- Team ---------- */
.team-groups {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.team-group-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber-600);
  margin-bottom: 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.team-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--amber-500), var(--navy-700));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
}

.team-info {
  flex: 1;
  min-width: 0;
}

.team-info strong {
  display: block;
  font-size: 0.98rem;
  color: var(--navy-900);
}

.team-role {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  margin: 3px 0 10px;
}

.team-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-contact a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--color-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition);
}

.team-contact a:hover {
  color: var(--amber-600);
}

.team-contact svg {
  width: 14px;
  height: 14px;
  color: var(--amber-500);
  flex-shrink: 0;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
}

.contact-info-card h3 {
  color: var(--white);
}

.contact-info-list {
  margin-top: 24px;
}

.contact-info-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-info-list .icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(0, 150, 64, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-list .icon-box svg {
  width: 20px;
  height: 20px;
  color: var(--amber-400);
}

.contact-info-list strong {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.contact-info-list a,
.contact-info-list span {
  font-size: 1rem;
  font-weight: 500;
}

.hours-table {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hours-table div {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 6px 0;
  color: var(--gray-300);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--color-text);
  background: var(--gray-50);
  transition: border-color var(--transition), background var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber-500);
  background: var(--white);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 14px;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: #e6f6ec;
  color: #1e7a42;
}

.form-status.error {
  background: #fdecec;
  color: #b3261e;
}

.address-field {
  position: relative;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.address-suggestions li {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--color-text);
  cursor: pointer;
}

.address-suggestions li:hover {
  background: var(--gray-50);
  color: var(--navy-900);
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 12px 12px;
}

.form-success[hidden] {
  display: none;
}

.form-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--white);
  margin-bottom: 20px;
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
}

.form-success h3 {
  margin-bottom: 10px;
}

.form-success p {
  color: var(--color-text-light);
  max-width: 36ch;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.map-embed {
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ---------- Reveal animation ----------
   Ren CSS-animasjon (ingen scroll-avhengighet) slik at innhold alltid
   er synlig selv om JavaScript ikke kjører. */
.reveal {
  animation: reveal-in 0.7s ease both;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
  }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 90;
  border: none;
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .coverage,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split-visual {
    order: -1;
  }
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 380px;
    margin: 0 auto;
  }

  .nav-links,
  .topbar-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta .btn-label {
    display: none;
  }

  .nav-cta .btn {
    padding: 12px;
  }

  .nav-cta .btn svg {
    width: 20px;
    height: 20px;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 24px 24px;
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .grid-3,
  .grid-2,
  .values-grid,
  .stat-row,
  .form-row {
    grid-template-columns: 1fr;
  }

  section {
    padding: 64px 0;
  }

  .cta-banner {
    padding: 40px 28px;
    flex-direction: column;
    text-align: center;
  }
}

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

  .coverage-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip .container {
    flex-direction: column;
  }

  .trust-item {
    flex: none;
  }
}
