/* ====== BASIS ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050505;
  --bg-soft: #0b0b0d;
  --bg-card: #101012;
  --bg-elevated: #151518;

  --accent: #275237;              /* Primær grønn */
  --accent-soft: rgba(39, 82, 55, 0.18);

  --text: #f9fafb;
  --text-soft: #9ca3af;
  --border-subtle: rgba(75, 85, 99, 0.5);

  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-soft: 0 32px 80px rgba(0, 0, 0, 0.85);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #111827 0, #050505 45%, #000 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 0 auto;
}

/* ====== GENERELT LAYOUT ====== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-card {
  background: radial-gradient(circle at top left, #111827 0, #050505 55%);
  border-radius: var(--radius-xl);
  padding: 2.2rem 2.1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.section-header {
  margin-bottom: 2.2rem;
}

.section-header h1,
.section-header h2 {
  margin: 0 0 0.7rem;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
  max-width: 640px;
}

/* ====== TYPOGRAFI ====== */
h1,
h2,
h3 {
  font-weight: 600;
}

h1 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.1rem;
}

p {
  font-size: 0.97rem;
  line-height: 1.7;
}

.lead {
  font-size: 1rem;
  color: var(--text-soft);
}

.text-soft {
  color: var(--text-soft);
}

.small {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ====== LINKER ====== */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #e5e7eb;
}

/* ====== HEADER / NAV ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 6, 0.98),
    rgba(5, 5, 6, 0.9),
    transparent
  );
  border-bottom: 1px solid rgba(55, 65, 81, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo {
  width: 110px;     
  height: 110px;
  border-radius: 0;      
  background: none;       
  border: none;           
  box-shadow: none;       
  overflow: visible;       
}


.logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.logo-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.main-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.15s ease-out;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 18px;
}

/* Burger for mobil */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #f9fafb;
}

/* ====== HERO / FORSIDE ====== */
.splash {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0 4rem;
}

.splash-inner {
  text-align: center;
  max-width: 680px;
  padding: 2.4rem 2.2rem 2.6rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(39, 82, 55, 0.22) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(39, 82, 55, 0.18) 0, transparent 60%),
    rgba(10, 10, 12, 0.96);
  border: 1px solid rgba(75, 85, 99, 0.9);
  box-shadow: var(--shadow-soft);
}

.splash-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: radial-gradient(circle at top, #111827, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.splash-logo img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.splash-tagline {
  font-size: 1.18rem;
  color: var(--text-soft);
  margin: 0;
}

.btn-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ====== KNAPPER ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #f9fafb;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* ====== GRID ====== */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

/* ====== KORT / CARDS ====== */
.card-soft {
  background: linear-gradient(145deg, #101012, #050505);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  border: 1px solid rgba(75, 85, 99, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
}

.card-soft h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

/* ====== BADGE / IKONER ====== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #d1fae5;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.icon-chip {
  background: none;
  border-radius: 0;
  box-shadow: none;
  width: auto;
  height: auto;
  padding: 0;
  font-size: 1.4rem; /* valgfritt – gjør ikonet større */
}

.card-soft h3 {
  margin-top: 1rem; 
}

/* ====== LISTER ====== */
.bullet-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.bullet-list li {
  margin-bottom: 0.35rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.checklist li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 1rem;
  color: var(--accent);
}

/* ====== GALLERI ====== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top, #111827, #020617);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.8rem 1rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ====== VIDEO ====== */
.video-wrapper {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: #000;
}

video {
  display: block;
  width: 100%;
  height: auto;
}

/* ====== SKJEMA ====== */
form {
  margin-top: 1.3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

form label {
  font-size: 0.85rem;
  color: var(--text-soft);
}

input,
textarea {
  background: #020617;
  border-radius: 12px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: #6b7280;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(39, 82, 55, 0.8);
  outline-offset: 1px;
}

/* ====== FOOTER ====== */
.site-footer {
  border-top: 1px solid rgba(55, 65, 81, 0.7);
  background: #050507;
  padding: 1.6rem 0 2rem;
  flex-shrink: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-soft);
}

/* ====== KODE ====== */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.85em;
  background: #020617;
  padding: 0.08rem 0.3rem;
  border-radius: 0.25rem;
}

/* ====== RESPONSIV ====== */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-card {
    padding-inline: 1.5rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    inset-inline: 1.5rem;
    top: 60px;
    flex-direction: column;
    align-items: flex-start;
    background: #020617;
    border-radius: 18px;
    padding: 0.9rem 1rem 1.1rem;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: var(--shadow-soft);
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .splash-inner {
    padding-inline: 1.7rem;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
