/* =========================
   Design system – Driftsflyt.no
   ========================= */

:root {
  --color-primary: #111111;
  --color-accent: #2F5D62;
  --color-bg: #FAFAFA;
  --color-border: #E5E7EB;
  --color-text-secondary: #4B5563;
}

/* Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--color-primary);
  background-color: #F6F7F8;
  line-height: 1.6;
  font-size: 16px;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 20px;
}

section {
  padding: 80px 0;
}

section:nth-child(even) {
  background-color: #ffffff;
}

section {
  scroll-margin-top: 96px;
}

.form-wrapper {
  display: flex;
  justify-content: center;
}

.form-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--color-border);
}


.form-card .cta {
  width: 100%;
  text-align: center;
  font-size: 1.05rem;
}
input,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  font-size: 1rem;
  margin-top: 6px;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Typografi */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }

p {
  max-width: 680px;
  margin-bottom: 20px;
}

p.lead {
  font-size: 1.2rem;
}

/* Lister */
ul {
  max-width: 680px;
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
}

/* Lenker & CTA */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 120ms ease;
}

a:hover {
  color: #244a4f;
  text-decoration: underline;
}

.cta {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 28px;
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Hero */
.hero {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 96px;
}
.form-card {
  margin-top: 32px;
}
.hero .container {
  padding-top: 120px;
  padding-bottom: 96px;
}

.hero h1 {
 font-weight: 700;
  font-size: 3rem;
  letter-spacing: -0.02em;
  max-width: 820px;
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* Seksjonstitler */
section h2 {
  position: relative;
  padding-bottom: 12px;
}

section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

/* Animasjon */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .container > * {
  animation: fadeUp 600ms ease-out both;
}

.hero .container > *:nth-child(1) { animation-delay: 80ms; }
.hero .container > *:nth-child(2) { animation-delay: 160ms; }
.hero .container > *:nth-child(3) { animation-delay: 240ms; }
.hero .container > *:nth-child(4) { animation-delay: 320ms; }

/* Tilgjengelighet */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Mobil */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero h1 span { font-size: 1.2rem; }
}

/* =========================
   Logo – Driftsflyt
   ========================= */

.logo a {
  text-decoration: none;
}

.logo-text {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
}

.logo-sep {
  display: inline-block;
  margin: 0 0.45em;          /* Luft rundt separator */
  color: var(--color-accent); /* Petrol-aksent */
  font-weight: 600;
}

/* Hover – subtil, ingen pynt */
.logo a:hover .logo-text {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 1rem;
  }
}


/* =========================
   Header / Navigasjon
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(250, 250, 250, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.cta-small {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* Mobil */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  font-size: 1rem;
  margin-top: 6px;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
}

form label {
  display: block;
  margin-top: 8px;
}
