﻿/* ------------------------------
   Grunnvariabler og reset
   ------------------------------ */
:root {
  --color-navy: #0f2747;
  --color-navy-light: #1b3b67;
  --color-orange: #f47b20;
  --color-orange-dark: #d86511;
  --color-bg: #ffffff;
  --color-text: #1f2937;
  --color-muted: #5b677a;
  --color-border: #e8edf3;
  --shadow-soft: 0 12px 30px rgba(15, 39, 71, 0.12);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section-space {
  padding: 4rem 0;
}

/* ------------------------------
   Knapper
   ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--color-orange);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-orange-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: #ffffff;
  color: #ffffff;
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ------------------------------
   Sticky navigasjon (mobile-first)
   ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.nav-wrapper {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-navy);
}

.menu-toggle {
  display: none;
}

.menu-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 2px;
  background: var(--color-navy);
}

.main-nav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  display: none;
  flex-direction: column;
  padding: 0.75rem;
  gap: 0.4rem;
}

.main-nav a {
  font-weight: 600;
  color: var(--color-navy);
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a.active {
  background: #f3f7fd;
}

.main-nav .btn-nav {
  margin-top: 0.35rem;
  text-align: center;
  background: var(--color-orange);
  color: #ffffff;
}

.main-nav .btn-nav:hover {
  background: var(--color-orange-dark);
}

.menu-toggle:checked ~ .main-nav {
  display: flex;
}

/* ------------------------------
   Hero
   ------------------------------ */
.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: center;
  background-image: url("https://images.unsplash.com/photo-1484154218962-a197022b5858?auto=format&fit=crop&w=1900&q=80");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(15, 39, 71, 0.92), rgba(15, 39, 71, 0.72));
}

.hero-content {
  position: relative;
  color: #ffffff;
  padding: 4rem 0;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8rem;
  color: #d7e6fd;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(1.95rem, 8vw, 3.5rem);
  line-height: 1.15;
  max-width: 15ch;
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 58ch;
  color: #f3f7ff;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ------------------------------
   Services preview
   ------------------------------ */
.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  color: var(--color-navy);
  font-size: clamp(1.4rem, 5vw, 2rem);
  margin-bottom: 0.4rem;
}

.section-head p {
  color: var(--color-muted);
}

.service-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(14, 40, 72, 0.06);
}

.service-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f7fd;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
}

.icon-circle svg {
  width: 20px;
  height: 20px;
  fill: var(--color-navy);
}

.card-body h3 {
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.card-body p {
  color: var(--color-muted);
}

/* ------------------------------
   Trust seksjon
   ------------------------------ */
.trust {
  padding-top: 1rem;
  padding-bottom: 4.5rem;
}

.trust-box {
  background: #f8fbff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.trust-box h2 {
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.trust-box p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

/* ------------------------------
   Footer
   ------------------------------ */
.site-footer {
  background: var(--color-navy);
  color: #e8edf7;
}

.footer-content {
  padding: 1.1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ------------------------------
   Større skjermer
   ------------------------------ */
@media (min-width: 768px) {
  .menu-button {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
    gap: 0.2rem;
  }

  .main-nav a {
    padding: 0.5rem 0.75rem;
  }

  .main-nav .btn-nav {
    margin-top: 0;
    margin-left: 0.6rem;
  }

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

  .trust-box {
    padding: 2rem;
    text-align: center;
  }
}

/* ------------------------------
   Undersider (felles)
   ------------------------------ */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  background-size: cover;
  background-position: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(15, 39, 71, 0.92), rgba(15, 39, 71, 0.65));
}

.page-hero-content {
  position: relative;
  color: #ffffff;
  padding: 4rem 0 2.2rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 7vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.page-hero p {
  max-width: 62ch;
  color: #edf3ff;
}

.content-block {
  padding: 3rem 0;
}

.content-grid {
  display: grid;
  gap: 1rem;
}

.info-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(14, 40, 72, 0.05);
}

.info-card h3 {
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.info-card p {
  color: var(--color-muted);
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.feature-list li {
  color: var(--color-text);
  padding-left: 1.35rem;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
}

/* ------------------------------
   Kontakt
   ------------------------------ */
.contact-layout {
  display: grid;
  gap: 1rem;
}

.contact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 1.1rem;
  box-shadow: 0 8px 20px rgba(14, 40, 72, 0.05);
}

.contact-card h2 {
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--color-muted);
  margin-bottom: 0.9rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-outline {
  border-color: var(--color-navy);
  color: var(--color-navy);
  background: #ffffff;
}

.btn-outline:hover {
  background: #f3f7fd;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.3rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #d6dfec;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--color-text);
}

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

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid #c6daf8;
  border-color: #accaf3;
}

.form-status {
  min-height: 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-status.is-success {
  color: #0f7a38;
}

.form-status.is-error {
  color: #b42318;
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
}
