/* ============================================================
   AUTOFINDR — styles.css
   Rediger farger her: alt styres av variablene under.
   ============================================================ */

:root {
  --dark: #0F3D3A;        /* mørk teal — hero + CTA-bakgrunn */
  --accent: #0D9488;      /* teal aksent — knapper, ikoner */
  --accent-hover: #0B7C72;
  --mint: #5EEAD4;        /* mint highlight */
  --bg: #FFFFFF;          /* lys bakgrunn */
  --bg-soft: #F7FAFA;     /* alternativ lys bakgrunn */
  --text: #1E293B;        /* hovedtekst */
  --muted: #64748B;       /* dempet tekst */
  --border: #E2E8F0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 61, 58, 0.04), 0 8px 24px rgba(15, 61, 58, 0.06);
  --shadow-hover: 0 2px 4px rgba(15, 61, 58, 0.06), 0 16px 40px rgba(15, 61, 58, 0.12);
  --container: 1100px;
}

/* ---------- Grunnlag ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }

img, svg { display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 760px; text-align: center; }

/* ---------- Knapper ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  will-change: transform;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35); }

.btn-light {
  background: var(--mint);
  color: var(--dark);
}
.btn-light:hover { box-shadow: 0 8px 24px rgba(94, 234, 212, 0.4); }

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }

.btn-small { padding: 10px 20px; font-size: 0.92rem; }
.btn-large { padding: 17px 40px; font-size: 1.1rem; }

/* Synlig fokus for tastaturnavigasjon */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { border-radius: 999px; }

/* ---------- Toppmeny ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 61, 58, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-logo-mark { border-radius: 8px; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(13, 148, 136, 0.35), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(94, 234, 212, 0.12), transparent 60%),
    var(--dark);
  color: #fff;
  padding: 110px 0 130px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  color: var(--mint);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.highlight { color: var(--mint); }

.hero-sub {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 16px;
}

.hero-text {
  max-width: 620px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Seksjoner ---------- */

.section { padding: 96px 0; }

.section-tinted { background: var(--bg-soft); }

.section-eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section h2 { margin-bottom: 48px; }

.container.narrow h2 { margin-bottom: 20px; }

.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Kort ---------- */

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

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--accent);
  margin-bottom: 20px;
}

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

/* ---------- Steg ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: steg;
}

.step {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--mint);
  font-weight: 700;
  margin-bottom: 18px;
}

.step p { color: var(--muted); margin: 0; }

/* ---------- CTA ---------- */

.cta {
  background:
    radial-gradient(800px 400px at 50% -20%, rgba(13, 148, 136, 0.4), transparent 65%),
    var(--dark);
  color: #fff;
  text-align: center;
  padding: 110px 0;
}

.cta-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.15rem;
  margin-bottom: 36px;
}

.cta-contact {
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.72);
}

.cta-contact a {
  color: var(--mint);
  text-decoration: none;
  font-weight: 500;
}
.cta-contact a:hover { text-decoration: underline; }

.cta-contact .dot { margin: 0 12px; }

/* ---------- Footer ---------- */

.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer p { margin: 0; }

.footer-brand { font-weight: 700; }

.footer-gdpr, .footer-year {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Chat-boble: reservert plass nederst til høyre ---------- */
/* Widgeten du limer inn ved <!-- AI-AGENT EMBED HER --> legger seg her.
   .chat-slot holder av plassen slik at ingenting annet legger seg der. */

.chat-slot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  pointer-events: none;
  z-index: 90;
}

/* ---------- Animasjoner (fade-up ved scroll) ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Responsivt ---------- */

@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .section { padding: 72px 0; }
  .hero { padding: 80px 0 96px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
